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