当前位置:首页 > 数据库 > Oracle

关于oracle的分页问题

select *from student where id not in
(select id from student where rownum <=5)
and rownum <=15 order by id

select *from student where rownum <=10 minus
select *from student where rownum <=5

两行都可实现oracle的分页  但最为可靠的还是第一种,student为创建的表名,代码很简单输出的是从ID=6(ID 是表里的主键)的位置开始输出输出,总共输出15个数

关于oracle的分页问题

标签:

本文系统来源:http://www.cnblogs.com/beyondyour/p/4553956.html


【说明】本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:254677821)!

相关教程推荐

其他课程推荐