【发布时间】:2020-06-17 13:29:50
【问题描述】:
我写了以下程序:
create or replace procedure ADDPHONE(IDPELATH in number,IDTHLEFWNO in number )
is
cursor cursor_number is select id_pelath ,TelephoneNumber from PhoneNumbers
where id_pelath>2;
more_than_two_numbers exception;
begin
open cursor_number ;
fetch cursor_number into IDPELATH;
if id_pelath%FOUND then raise more_than_two_numbers
end if;
close cursor_number;
exception
when more_than_two_numbers then
raise_application_error('Error');
END;
/
当我运行它时,我收到以下错误:
PLS-00103: Encountered the symbol "END" when expecting one of the following: . ;
The symbol ";" was substituted for "END" to continue.
你能帮我找出错误吗?
【问题讨论】:
-
请不要大喊大叫。
-
如果 id_pelath%FOUND 然后提高 more_than_two_numbers ;
-
程序中存在多个问题。输入参数从未被使用过,为什么需要它们?光标正在获取一个变量但是定义说两个?你的问题陈述是什么。
标签: plsql oracle11g compiler-errors