ORA-06550:第1行第7列:PLS-00306:调用的参数的数量或类型错误

时间:2018-02-20 17:40:28

标签: oracle line ora-06550

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

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:忽略语句

1 个答案:

答案 0 :(得分:2)

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

var nvar number;
execute cust_order_sample(111, :nvar);
print nvar;