你好,
我想使用腳本將 2 個資料表連接到 1 個合併資料表中。
我已經手動將 2 個資料表連接到 1 個聯合資料表中,因此我將相同的腳本從聯合資料表複製到我的主腳本中。
不知何故,當我執行主腳本時,dt2 中所有選取的欄位都不包含在聯合資料表中。
為什麼它不起作用?
Data Table( "AVIYield (Datasheet)" ) << Join(
With( Data Table( "Process_History_LotNoListingBeforeAVI" ) ),
Update,
Select(
:Machine Type, :Machine No, :Lot No, :Device, :Recipe, :Start Lot Time, :End Lot Time,
:Total Inspected Unit, :Total Dummy Unit, :Total Reject Unit,
:Overall Yield Include dummy, :Yield Exclude dummy, :FBMissing Bond, :FBAccuracy,
:FBBroken Wire, :FBBall Size, :SBMissing Bond, :SBPlacement, :SBBroken Wire,
:SBWedge Size, :WTDeviation, :WTBroken Wire, :Die Shift, :Die Surface, :Die Rotate,
:Die Epoxy Insuff, :Die Expoxy Excess, :Die Substrate, :SBBall Missing Bond,
:SBBall Broken Wire, :SBBall Accuracy, :Name( "NU-No Unit" ), :Name( "DU-Destroy Unit" ),
:Name( "ID-Incomplete Die" ), :Name( "DED-Die Edge Defect" ),
:Name( "DP-Die Placement" ), :Name( "EG-Excessive Glue" ),
:Name( "IG-Insufficient Glue" ), :Name( "DO-Die Orientation" ),
:Name( "NWB-No Wire Bond" ), :Name( "MW-Multiple Wire" ), :Name( "BP-Ball Placement" ),
:Name( "DW-Distorted Wire" ), :Name( "IW-Incomplete Wire" ),
:Name( "FM-Foreign Material" ), :Name( "MP-Missing Phosphor" ), :PackageFamily
),
SelectWith( :Process Oper, :Process Mach No, :In Time, :Out Time ),
By Matching Columns( :Lot No = :Lot No ),
Drop multiples( 0, 0 ),
Include Nonmatches( 1, 0 ),
Preserve main table order( 1 ),
Output Table( "JoinT" )
);

多謝。 在我沒有選擇該更新命令而是從第二個表繼續之後,它就起作用了。
你好! 如果您查看 Join 函數的文檔(這裡)它指出“當你使用使用第二個表中的資料更新主表,選擇連接表的列不適用。” 因此,它只會更新主表中的現有列。 嘗試不選擇“更新”命令或使用單獨的“表”>“更新”工具來嘗試實現您的目標。