Oracle:存储过程返回结果集

create or replace procedure p_test(p_cur out sys_refcursor)
as
begin
     open p_cur for select * from F_RELATION;
end p_test;


DECLARE
test_cur sys_refcursor  ;
begin
p_test(test_cur);
end;


原文地址:https://www.cnblogs.com/tiancai/p/6861703.html