时间:2021-07-01 10:21:17 帮助过:3人阅读
select student, sum(case Course when ‘语文‘ then Score else null end) 语文, sum(case Course when ‘数学‘ then Score else null end) 数学, sum(case Course when ‘英语‘ then Score else null end) 英语 from test group by student
得到结果:
sql列转行查询
标签:ase src 技术分享 code 分享 ima from blog 语文