oracle中实现分页

来源:百度文库 编辑:神马文学网 时间:2024/04/18 19:32:35
样例一:select * from
(select customer_id,name,rownum r from crm_customer where rownum<16)
where r>2 order by customer_id样例二:若数据量大可以这样:select * from
(
select col1,col2,col3,rownum rn from your_table where rownum < 16
)
where rn > 11 ;
样式三:若数据量不大可以这样:
select col1,col2,col3 from your_table where rownum <16
minus
select col1,col2,col3 from your_table where rownum < 11 ;
-----------------------------------------------------------------------------------------------------------------------资料来源于网上,个人整理