捕捉异常,一般的结构如下:
begin
-- sql语句
...... commit;
exception
when XXXX then -- 对于已知的异常,处理过程
.......
when others then -- 对于其他的未知异常,处理过程
.......
end;
begin
-- sql语句
...... commit;
exception
when XXXX then -- 对于已知的异常,处理过程
.......
when others then -- 对于其他的未知异常,处理过程
.......
end;
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货