13PL_SQL过程之错误处理即捕获异常
来源:互联网 发布:女生色诱男生 知乎 编辑:程序博客网 时间:2024/06/07 00:43
declare
v_temp number(4);
begin
select empno into v_temp from emp where deptno=10;
exception
when too_many_rows then
dbms_output.put_line('太多记录了');
when others then
dbms_output.put_line('error!');
end;
declare
v_temp number(4);
begin
select empno into v_temp from emp where empno=2222;
exception
when no_data_found then
dbms_output.put_line('没有数据');
end;
v_temp number(4);
begin
select empno into v_temp from emp where deptno=10;
exception
when too_many_rows then
dbms_output.put_line('太多记录了');
when others then
dbms_output.put_line('error!');
end;
declare
v_temp number(4);
begin
select empno into v_temp from emp where empno=2222;
exception
when no_data_found then
dbms_output.put_line('没有数据');
end;
0 0
- 13PL_SQL过程之错误处理即捕获异常
- 03PL_SQL过程之捕获异常
- PHP学习系列之错误处理和异常捕获
- 21PL_SQL过程之函数
- 存储过程中异常捕获处理
- 适当处理错误(捕获异常)
- 19PL_SQL过程之创建存储过程
- WPF中未捕获异常之处理
- WPF中未捕获异常之处理
- java之异常的捕获及处理
- java之异常捕获及处理
- 01PL_SQL过程之输出HelloWorld
- 02PL_SQL过程之声明变量
- 06PL_SQL过程之复杂数据类型Table
- 08PL_SQL过程之执行select语句
- 09PL_SQL过程之执行insert语句
- 10PL_SQL过程之执行if语句
- 11PL_SQL过程之创建表
- 12PL_SQl过程之三种循环
- Spring(AbstractRoutingDataSource)实现动态数据源切换
- 接口和抽象类有什么区别
- hdu 5067(状态压缩dp)
- 华为机试---奖学金
- 13PL_SQL过程之错误处理即捕获异常
- java 树形结构转换为json字符串
- Easy to understand Dynamic Programming – Edit distance
- HDU 3560 并查集
- 14PL_SQL之用表存储错误信息
- JAVAweb 实现导入导出
- php 错误信息配置
- 面试指导
- PHP中的final/static