create or replace procedure P1(p_ret_code IN OUT varchar2)
AS
BEGIN
p_ret_code:='000';
exception
when others then
p_ret_code:='999';
end P1;
/
set serveroutput on;
declare
p varchar2(10);
begin
p1@link_xxx(p);
dbms_output.put_line('return:'||p);
exception when others then
dbms_output.put_line('error:'||p);
end;
/
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/12327/viewspace-890800/ ,如需转载,请注明出处,否则将追究法律责任。