oracle 错误:ORA-06553:PLS-306:调用过程中的参数数量或类型错误
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/13947222/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-10 04:45:39 来源:igfitidea点击:
Error : ORA-06553: PLS-306: wrong number or types of arguments in call to procedure
提问by hsuk
While I call the procedure, it gives me error:
当我调用该过程时,它给了我错误:
ORA-06553: PLS-306: wrong number or types of arguments in call to 'UPDATE_LETTER_BODY'
Here is my procedure code:
这是我的程序代码:
CREATE OR REPLACE PROCEDURE FMIS3.UPDATE_LETTER_BODY IS
body_text varchar2(32767);
condition_id integer;
begin
update FMS_K_OFFICEWISE_LETTER set FKOL_LETTER_BODY=body_text
where FKOL_OFFICEWISE_LETTER_ID=condition_id;
end;
Here is how I called it:
这是我如何称呼它的:
CALL UPDATE_LETTER_BODY('test',241);
回答by user1917764
Check this out :
看一下这个 :
CREATE OR REPLACE PROCEDURE FMIS3.UPDATE_LETTER_BODY ( body_text IN FMS_K_OFFICEWISE_LETTER.FKOL_LETTER_BODY%type,condition_id in FMS_K_OFFICEWISE_LETTER.FKOL_OFFICEWISE_LETTER_ID%type)IS
begin
update FMS_K_OFFICEWISE_LETTER set FKOL_LETTER_BODY= body_text
where FKOL_OFFICEWISE_LETTER_ID=condition_id;
end;
回答by Rahul Vasantrao Kamble
It should be
它应该是
CREATE OR REPLACE PROCEDURE FMIS3.UPDATE_LETTER_BODY(body_text in varchar2,condition_id in number) IS
begin
update FMS_K_OFFICEWISE_LETTER set FKOL_LETTER_BODY=body_text
where FKOL_OFFICEWISE_LETTER_ID=condition_id;
end;
回答by Nipun Jain
CREATE OR REPLACE PROCEDURE FMIS3.UPDATE_LETTER_BODY ( body_text IN varchar2,condition_id in integer ) IS
begin
update FMS_K_OFFICEWISE_LETTER set FKOL_LETTER_BODY=body_text
where FKOL_OFFICEWISE_LETTER_ID=condition_id;
end;
update your proc as above ...
如上所述更新您的过程...