你想把他们只是并列显示出来,但是不组合在一起,那么只需要ORDER BY name就可以了,不需要GROUP BY
感觉你就是 按照姓名排序,按照年龄倒排序select id,name,age from studentInfo order by name, age desc
SELECT id, name, agefrom studentInfo order by name, id asc