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

Oracle查询分页SQL语句

2012-12-12 09:54 441 查看
select * from user_stream t

select t2.* from (select rownum r,t1.* from youtable t1 where rownum<?) t2 where t2.r>?
--小于最大的,大于最小的,就是你需要的条数如果你取40-50条之间的只需要小于50   大于40就OK了.
select t2.* from (select rownum r,t1.* from user_stream t1 where rownum < 20) t2 where t2.r > 9
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: