带异常的存储过程
带异常的存储过程:
declare
2 v_ename varchar2(5);
3 v_sal number(7,2);
4 begin
5 select ename,sal into v_ename,v_sal from emp1 where empno=7500;
6 dbms_output.put_line('yhm');
7 exception
8 when no_data_found then
9 dbms_output.put_line('youcuo');
10 end;