--将以上查询作为一张表
mysql的分页
select * from emp order by sal desc limit 3;--第一页,每页显示3条
select * from emp order by sal desc limit 4,3;
select * from emp order by sal desc limit 3,3;
-- limit用法如下
-- 第一个参数是指要开始的地方,第二个参数是指每页显示多少条数据
-- 第一页用0表示
select * from emp order by sal desc ;
select * from emp order by sal desc limit 0,4;
select * from emp order by sal desc limit 1,4;
文章来源: https://blog.csdn.net/HanYueQian/article/details/96561224