请教前辈写一个oracle实现web分页

解决方案 »

  1.   

    这个网上有很多例子啊! 可以通过sql语句进行分页查询。
      

  2.   

      select id,name,salary
      from(
         select rownum rn,id,name,salary
         from(
           select id,name,salary
           from z_emp
           order by salary desc
         )b 
      )a
      where rn between 6 and 10;
      

  3.   

    select * from (select rownum  a,t.* from table  t)  where a>(第几页-1)*一页显示的数量 and a<=第几页*一页显示的数量
      

  4.   

    补充:rownum是系统定义的这张表的总行数