执行带输出参数的存储过程

调用存储过程时,参数列表中的输出变量不能是常量,又不能在调用时直接在参数列表中声明。
因此要先声明一个变量,再执行存储过程。
例如
create or replace procedure prc
(v1 in number,v2 in  varchar2, v3 out number )
....

则调用的时候要有两个步骤
>var ot;
>prc(0,'str',:ot);

猜你喜欢

转载自zgcsy1986.iteye.com/blog/2149575