begin tran --开启事务 commit tran --提交事务 rollback tran --回滚事务
这样设置查询分析器后,不小update和delete错数据了,能够用sql
rollback tran --回滚事务
肯定没有错误了,则code
commit tran --提交事务