求怎么用存储过程和游标写分页!

解决方案 »

  1.   

    create or replace procedure SC_ADMIN_LIST(v_allcount  out integer,v_rc1       out globalpkg.rct1) isbegin  select count(*) into v_allcount from a_admin;--求总记录数 --游标使用  open v_rc1 for        select * from a_admin order by ad_id desc;   commit; exception    when others then      rollback;      raise;       end SC_ADMIN_LIST;
      

  2.   

    上网查询了Oracle数据库分页存储过程吧
      

  3.   

    谢谢啦。。不过我是直接使用rowid写的分页!呵呵。。