Multiple update statements in one StoredProcedure

后端 未结 4 1268
梦毁少年i
梦毁少年i 2021-01-17 23:05

I am wondering if it is possible to have multiple Update statements in a store procedure

Something like this:

Update Table1 set field1 = @new_value w         


        
4条回答
  •  暖寄归人
    2021-01-18 00:00

    You should wrap those statments in transactions as well so that if one fails all are rolled back.

提交回复
热议问题