我有三个表: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