当我调用这个过程时,它给出了错误:
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);发布于 2012-12-20 13:46:14
看看这个:
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; 发布于 2012-12-19 15:13:42
它应该是
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;发布于 2012-12-19 15:25:01
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;如上所述更新您的进程...
https://stackoverflow.com/questions/13947222
复制相似问题