【ORACLE】pl/sql编程例外处理(Exception) 李四
例外分为三种:1.预定义例外 2.非预定义例外 2.自定义例外 以下主要举例说明预定义例外处理 1.预定义例外 no_data_found. declare v_ename emp ename%type begin select ename into v_ename from emp where empno=&gno; dbms_output.put_line('名字:'||v_ename); exception when no_data_found then dbms_output.put_line('该编号没有!'); end; 2.预定义例外 case_no_found. 在pl/sql块中编辑case语句时,如果when 子句中没有包含必须的条件分支,就会触发case_no_found. create or replace proc