标签:
declare @Errorcount int =0
begin tran tran_20151106
insert into PatentFile values(1,1,1,1,1,1,11)
set @Errorcount=@Errorcount+@@error
insert into PatentFile values(1,1,1,1,1,1,11)
set @Errorcount=@Errorcount+@@error
if(@Errorcount<>0)
begin
rollback tran tran_20151106
end
else
begin
rollback tran tran_20151106
end
标签:
原文地址:http://www.cnblogs.com/chao2014/p/4941613.html