首页 > Linux操作系统 > Linux操作系统 > 存储过程中返回游标类型的处理
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博客 ” ,链接:https://blog.itpub.net/11813230/viewspace-629274/ ,如需转载,请注明出处,否则将追究法律责任。