sql - limit与order by一起使用的案例
题目:table有两个字段,分别是student,score , 挑选不及格20名,及格30名学生
代码:
select bujige.student,bujige.score,jige.student,jige.score
from (select * from table order by table.score limit 20) bujige,
(select * from table order by table.score desc limit 30) jige