sql 数据库怎样检索出每个班级里总分数TOP10的学生姓名,并按班级和总分排名:
select class,grade from student group by class having top10(grade)
这里用一下top方法就可以定位到你想要的那一行啦
希望我的回答对你会有帮助