当我调用该程序时,它给了我错误:
ORA-06553: PLS-306: wrong number or types of arguments in call to 'UPDATE_LETTER_BODY'
这是我的程序代码:
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;
以下是我打电话的方式:
CALL UPDATE_LETTER_BODY('test',241);
答案 0 :(得分:2)
检查出来:
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;
答案 1 :(得分:1)
应该是
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;
答案 2 :(得分:1)
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;
如上所述更新您的过程......