create or replace procedure search (p_min integer,p_max Integer,p_rowset out sys_refcursor)
is
begin
open p_rowset for
select * from (select rownum r,table_name.* from table_name where rownum <= p_max) t
where t.r >= p_min;
end search;
posted on 2008-07-01 10:19
天问 阅读(325)
评论(0) 编辑 收藏 所属分类:
Oracle学习笔记