https://stackoverflow.com/questions/11531352/how-to-rollback-a-transaction-in-a-stored-procedure
BEGIN TRANSACTION; BEGIN TRY -- Some code COMMIT TRANSACTION; END TRY BEGIN CATCH ROLLBACK TRANSACTION; END CATCH;
时间: 2024-10-05 14:45:34
https://stackoverflow.com/questions/11531352/how-to-rollback-a-transaction-in-a-stored-procedure
BEGIN TRANSACTION; BEGIN TRY -- Some code COMMIT TRANSACTION; END TRY BEGIN CATCH ROLLBACK TRANSACTION; END CATCH;