Using a table variable inside of a exists statement

后端 未结 3 1038
隐瞒了意图╮
隐瞒了意图╮ 2021-02-20 09:47

I am trying to update a column inside of a table variable based on a condition, the condition being that the ID of the table variable does not exist in a different table:

<
3条回答
  •  挽巷
    挽巷 (楼主)
    2021-02-20 10:20

    This will work:

    [@BugRep].BUGCODE
    

    You'll also need to change "b.CODE" to "b.BUGCODE" by the way ;)

提交回复
热议问题