我正在尝试更新表列并像这样设置另一个列的值
UPDATE dbo.TempTable t2
SET Introd = t1.Introd, AgtCode = t1.[Agt Code], PIN = t1.PIN, IDNo = t1.[ID No]
FROM dbo.CustomerData t1
WHERE t2.PolicyNo = t1.Policy
AND t2.Prod = t1.Prod
AND t2.Introd IS DISTINCT FROM t1.Introd
但它对我不起作用,