Oracle中如何执行带返回参数的存储过程

declare v_return_value number;     ##声明一个参数接返回值
begin
 ITS_SYS_PKG.saveITS_REGION('100009','测试区域','bz',v_return_value);
 dbms_output.put_line(v_return_value);  (老版本为dbms_output.put_line)
end;

PLS-00302: component 'PUTLINE' must be declared 

出错的原因是:dbms_output.putline(); 函数名在新版本中变了。

应该是:dbms_output.put_line();

 

改正后就好了。

猜你喜欢

转载自millerrch.iteye.com/blog/1824992