set serveroutput on DECLARE ; pename emp.ename%type; --自定义异常 no_emp_found exception; begin open cemp; fetch cemp into pename; if cemp%notfound then raise no_emp_found; end if; close cemp; exception when no_emp_found then dbms_output.put_line('自定义异常')…
参考: http://blog.csdn.net/haiross/article/details/20612135 Oracle/PLSQL: ORA-06550 Learn the cause and how to resolve the ORA-06550 error message in Oracle. Description When you encounter an ORA-06550 error, the following error message will appear: OR…
Oracle :show explain plan select * from table(dbms_xplan.display); EXPLAIN PLAN FOR statements In fact, in a typical data warehouse environments, a bitmap index can be considered for any non-unique column. In a data warehouse, B-tree indexes should b…