大家好,我是菜鸟一枚,今天第一次来CSDN论坛发帖,大家多多关照哈
我定义的包:
create or replace package a as
procedure main
(p_course_name in number);
ex exception;
end;
包体:
create or replace package body a as
ex exception;
procedure main(p_course_name in number) as
ln_course_id number;
begin
select course_id into ln_course_id from table where course_name = p_course_name;
exception
when NO_DATA_FOUND then
raise ex;
end main;
end;
我在RAISE EX的时候出错,这是为嘛,异常不定义在过程里如何解决啊?