获取学生当中同名的个数,并按同名的个数倒序排列 select name,count(name) as cna from student_info group by name having count(name)>1 order by cna desc