Oracle存储过程中执行查询的问题SQL codecreate or replace procedure getemps( p_cursor in out types.cu
Oracle存储过程中执行查询的问题
SQL code
create or replace procedure getemps( p_cursor in out types.cursorType ) as begin open p_cursor for select * from PROVINCE_MASTER; end;
这个存储过程怎么执行?
Oracle存储过程中执行查询,如何返回数据集,这样的存储过程该怎么写呢,请高手指教
[解决办法] declare
cc types.cursorType; begin getemps(cc); end; [解决办法] create or replace procedure test_cursor(out_cursor out SYS_REFCURSOR) is begin open out_cursor for select t.* from emp t; end;