sql查询总分前三的学生

如果取前三名的分数

select score from  table order by score asc limit 0,3

如果取前三名的学生 *注意:可能存在第三名的分数等于第四名

select score from table order by score asc limit 2,1    //取到第三名的分数

select name from table where score>=(select score from table order by score asc limit 2,1)   

posted on 2022-03-09 13:56  隔壁老王(加速版)  阅读(1144)  评论(0)    收藏  举报