oracle分页有通用写法

来源:互联网 发布:关于中国雾霾的数据 编辑:程序博客网 时间:2024/05/22 14:11
oracle分页有通用写法,假设一页5行select * from (    select t.*,rownum from (        select * from table1 where condition order by column) t )    where rownum>(pangeNow-1)*5 and rownum<=(pageNow)*5如果基础查询不需要排序,可以省掉一层嵌套select * from (    select t.*,rownum from table1 t where condition )    where rownum>(pangeNow-1)*5 and rownum<=(pageNow)*5
0 0