关于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个数

posted @ 2015-06-05 10:20  beyondyour  阅读(139)  评论(0编辑  收藏  举报