oracle sql 抛出异常
create or replace procedure test_exp is
begin
RAISE_APPLICATION_ERROR(-20000,'出异常了');
dbms_output.put_line('hello' || 'world');
exception
when others then
dbms_output.put_line(SQLCODE || '---->' || SQLERRM);
end test_exp;