MERGE - conditional “WHEN MATCHED THEN UPDATE”

前端 未结 1 1436
再見小時候
再見小時候 2021-02-07 03:17

The highlights in the image below shows the logic I want to implement. I realize the syntax is incorrect.

Is there a way to conditionally update a record in a MERGE sta

1条回答
  •  青春惊慌失措
    2021-02-07 04:03

    You might be able to use When Matched And (s.[Created Date] Is Not Null And t.[Created Date] Is Null) Then Update ....

    0 讨论(0)
提交回复
热议问题