sql分组查询每组的第一条记录

select  学生姓名,min(学生成绩) from 表名 group by 学生姓名

猜你喜欢

转载自blog.51cto.com/1197822/2157736