begin try
begin tran p 开始事务
执行的sql
commit tran p 没有出错的话,提交事务
end try
begin catch
rollback tran p 发生异常,事务回滚
print error_message()
end catch
go
begin tran p 开始事务
执行的sql
commit tran p 没有出错的话,提交事务
end try
begin catch
rollback tran p 发生异常,事务回滚
print error_message()
end catch
go
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货