SQL存储过程-事务

 

begin tran
    set xact_abort on     --表示遇到错误立即回滚   
insert update select delete    --执行逻辑
    commit tran        --提交事务 

 

posted @ 2013-05-30 14:39  1行受影响  阅读(212)  评论(0编辑  收藏  举报