0
這是我的查詢更新與除聲明
SELECT PageVisit_ID,TargetSite_ID FROM [A].Datawarehouse.mi.ctb_PageEvent WITH (NOLOCK)
EXCEPT
SELECT PageVisit_ID ,TargetSite_ID FROM [B].Datawarehouse.mi.ctb_PageEvent WITH (NOLOCK)
從兩個服務器這兩個表。我需要更新targetsite_id
的[A].Datawarehouse.mi.ctb_PageEvent
記錄從[B].Datawarehouse.mi.ctb_PageEvent
只匹配上面的查詢結果。
,但我需要僅從這個查詢結果集更新記錄(SELECT PageVisit_ID,TargetSite_ID FROM [A] .Datawarehouse.mi.ctb_PageEvent WITH(NOLOCK) EXCEPT SELECT PageVisit_ID,TargetSite_ID FROM [B] .Datawarehouse.mi.ctb_PageEvent WITH(NOLOCK)) –
現在明白了........ –