insert into [CLOSING STOCK]
select AOFC_IMS.Categories
from AOFC_IMS
where AOFC_IMS.[DISTRIBUTOR ITEM CODE]
=[CLOSING STOCK].[DISTRIBUTOR ITEM CODE];
答案 0 :(得分:0)
看起来你有一个名为Closing_Stock
的表格,其中包含一个名为“我猜测,Categories
的列,您要使用AOFC_IMS
表格中的数据进行更新{} p>
UPDATE T1
SET T1.Categories = T2.Categories
FROM [CLOSING STOCK] T1
INNER JOIN [AOFC_IMS] T2 ON T1.[DISTRIBUTOR ITEM CODE]
= T2.[DISTRIBUTOR ITEM CODE];