Add column to table and then update it inside transaction

后端 未结 6 1791
北荒
北荒 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:14

    Have you tried it without the GO?

    Normally you should not mix table changes and data changes in the same script.

提交回复
热议问题