SQL Server Summary
时间:2021-07-01 10:21:17
帮助过:2人阅读
Transaction Template
CREATE TRANSACTION [Name]
AS
BEGIN TRY
BEGIN TRANSACTION
--Execute Code
COMMIT TRANSACTION
END TRY
BEGIN CATCH
IF(
@@TRANCOUNT >0)
ROLLBACK TRANSACTION
END IF
END CATCH
SQL Server Summary
标签: