有很多办法:
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、写触发器
    。