create or replace procedure mycur(o out sys_refcursor)
as
begin
open o for select * from node;
end;
如何在Sql·plus中调试?
SQL>set autoprint on;
SQL>var o REFCURSOR;
SQL>exec mycur(:o);--注意使用Call是不输出结果的。注意冒号
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/11813230/viewspace-629274/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/11813230/viewspace-629274/