Oracle数据库的分页查询

比如有这么一个表

我想查出第3-6的数据

select * from(select t.*,rownum PR from emp t)where PR between 3 and 6;

也可以这样

select * from(select t.*,rownum PR from emp t)where PR>2 and PR<=6;

猜你喜欢

转载自blog.csdn.net/qq_38146131/article/details/82228023