分享

在oracle中实现分页

 ShangShujie 2007-04-13
样例一:
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 ;
-----------------------------------------------------------------------------------------------------------------------
资料来源于网上,个人整理

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多