1.如何将SQL查询结果合并成多列?
如何将SQL查询结果合并成多列?
select a.姓名,麻将l麻码租禾酱源码
a.身高,
a.体重,
a.三围,
sum(b.语文) as 语文总分,
sum(b.数学) as 数学总分,
sum(b.英语) as 英语总分,
sum(b.麻将) as 麻将总分,
sum(b.斗地主) as 斗地主总分
from 基本情况 as a,考试成绩 as b where a.姓名=b.姓名
group by a.姓名,a.身高,a.体重,a.三围
你三围写错了吧