我有三個表:a,b,c。表b是a和c的映射表。我正在嘗試更新表中的一列=表c列。使用映射表更新多個連接的表列
在實現更新,我收到一個錯誤:
[S0001][4104] The multi-part identifier could not be bound
UPDATE table_a
SET table_a.Sector = table_c.Sector
FROM table_a
INNER JOIN table_b
ON table_a.business_ID = cast(table_b.business_id as BIGINT)
INNER JOIN table_c
ON table_b.ACARA_SML_ID = table_c.ACARA_SML_ID
WHERE a.State = 'ABC';
我感謝所有幫助。
這很棒,完美運作。謝謝。 – matoneski