代码
CREATE PROCEDURE DelRowsByID
@id int
AS
BEGIN
begin transaction
begin try
--sql
end try
begin catch
if @@trancount>0
rollback transaction
end catch
if @@trancount>0
commit transaction

END

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-09
  • 2021-10-07
  • 2021-12-20
  • 2021-07-13
  • 2021-11-12
猜你喜欢
  • 2022-12-23
  • 2021-08-04
  • 2022-12-23
  • 2022-12-23
  • 2021-10-10
  • 2022-02-22
相关资源
相似解决方案