name语文
英语
a
20
10
b
30
20
c
40
30
显示结果为:
name
a
b c
语文
20 30 40
英语
10 20 30
用sql语句写
不行啊,你们这两个都不行,实际的表:create table stuMarks
(
ExamNochar(7) not null,
stuNo nvarchar(20) not null,
writtenExam intnot null ,
LabExam
intnot null
)
Insert stumarks
select N's25301',50,78 union all
select N's25302',56,68 union all
select N's25303',79,87 union all
select N's25304',90,58
|