随笔-69  评论-0  文章-5  trackbacks-0
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 阅读(413) 评论(0)  编辑  收藏

只有注册用户登录后才能发表评论。


网站导航: