sqlplus执行返回游标的存储过程

create or replace procedure p_test(p_cur out sys_refcursor)
as
begin
<wbr><wbr><wbr><wbr>open p_cur for select * from emp;<br> end p_test;<br><br> SQL&gt; var r refcursor;<br> SQL&gt; exec p_test(:r);<br> SQL&gt; print r;</wbr></wbr></wbr></wbr>

你可能感兴趣的:(sqlplus)