Add column to table and then update it inside transaction

后端 未结 6 1798
北荒
北荒 2020-12-08 12:33

I am creating a script that will be run in a MS SQL server. This script will run multiple statements and needs to be transactional, if one of the statement fails the overall

6条回答
  •  臣服心动
    2020-12-08 13:25

    Another alternative, if you don't want to split the code into separate batches, is to use EXEC to create a nested scope/batch as here

提交回复
热议问题