begin tran
begin try
--语句
select 1/0;
commit tran;
end try
begin catch
select Error_number() as ErrorNumber,
Error_severity() as E
SQLServer事务怎么写?
最新推荐文章于 2024-02-19 21:48:23 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)
begin tran
begin try
--语句
select 1/0;
commit tran;
end try
begin catch
select Error_number() as ErrorNumber,
Error_severity() as E