有很多办法:
1、写过程,函数,
create or replace proceduretest as
begin
update table1 a set a.column='OK' where ....;
update table2 a set a.column='OK' where ....;
。
commit; --不出过则提交
exception
when others then
rollback; --出错则回滚
end;2、写触发器
。
1、写过程,函数,
create or replace proceduretest as
begin
update table1 a set a.column='OK' where ....;
update table2 a set a.column='OK' where ....;
。
commit; --不出过则提交
exception
when others then
rollback; --出错则回滚
end;2、写触发器
。
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货