Sql Server 事务 BEGIN TRAN--执行一些东东if @@error<>0begin rollback tranreturn 0endelsebegin commit tranreturn 1end go 简单明了. 相关文章: