declare
my_exception EXCEPTION;
pragma EXCEPTION_INIT(my_exception,-20000);
begin
raise_application_error(-20000,'自定义错语');
exception when my_exception then
dbms_output.put_line('捕到了:'||sqlcode||sqlerrm);
end;
/
posted on 2007-04-12 16:48
liunix 阅读(421)
评论(0) 编辑 收藏