您的位置:首页 > 数据库 > Oracle

小结oracle与mysql的分页

2017-01-06 14:13 239 查看
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 
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息