insert into ...
delete from ...
update table ...
commit;

解决方案 »

  1.   

    begin
    insert into ...;
    delete from ...;
    update table ...;
    end;
    commit;
      

  2.   

    set transaction read only;      --read only可选insert into ...;savepoint save_it;              --建立事务保存点,在transaction中可以不用
    delete from ...;rollback to savepoint save_it;  --事务回退到保存点
    update table ...;rollback;                       --全部事务将被回退commit;                         --提交