小结oracle与mysql的分页

来源:互联网 发布:快易数据恢复大师 编辑:程序博客网 时间:2024/04/28 20:01

select a.* from table a limit 5,10;查询6-15

select a.* from table a limit 10, -1;查询11-last

select a.* from table a limit 10;查询前十条

oracle

select * from (select rownum as rn, t.* from table as t where rownum < 10) as emp where emp.rn > 5;查询6-10 

0 0
原创粉丝点击