假设按XH(学号)合并select distinct xh ,sum(总分) from 表 group by xh order by xh
用distinct 关键字select distinct a form A
是求各,还是“合并单元格”一样