这是我的查询
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