declare

  a number :='&args';

   e exception;

 begin

   if a=then

    raise e; --raise 抛出异常

   end if; 

exception

  when e then

    dbms_output.put_line('a不能为1'); 

  when others then

    dbms_output.put_line('#########'); 

end;

posted on 2018-06-29 16:04  清风徐来随心  阅读(224)  评论(0编辑  收藏  举报