遇到错误直接回滚:....
begin
insert into a ...;
insert into b....
insert into tablename .......;
commit;
exception <---异常处理,
when others then --只要插入时出现异常就回滚;
rollback;
end ;
begin
insert into a ...;
insert into b....
insert into tablename .......;
commit;
exception <---异常处理,
when others then --只要插入时出现异常就回滚;
rollback;
end ;
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货