0

调用参数时显示此错误是什么我不明白的问题。我是新用户:-(

CREATE OR REPLACE PROCEDURE cust_order_sample
( 
order_po_num IN Number,
sale_order_num OUT Number
)
As
BEGIN
select CONTROLLING_MANAGER INTO sale_order_num from FND_CONC_REQ_SUMMARY_V  WHERE ARGUMENT_TEXT=order_po_num;
END 
cust_order_sample;

当我运行这个程序时:

execute cust_order_sample(28685);

我收到此错误:

ORA-06550:第 1 行,第 7 列:
PLS-00306:调用“CUST_ORDER_SAMPLE”时参数的数量或类型错误
ORA-06550:第 1 行,第 7 列:
PL/SQL:语句被忽略

4

1 回答 1

2

您需要创建一个绑定变量来存储 OUT 参数值。在 SQLPLUS 中,这将起作用:

var nvar number;
execute cust_order_sample(111, :nvar);
print nvar;
于 2018-02-20T17:52:14.850 回答