现在的位置: 首页 > 综合 > 正文

oracle sql 抛出异常

2017年12月25日 ⁄ 综合 ⁄ 共 213字 ⁄ 字号 评论关闭

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;

抱歉!评论已关闭.