你好,
我想使用腳本將 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 函數的文檔(這裡) 它指出“當你使用使用第二個表中的數據更新主表,選擇連接表的列不適用。” 所以它只會更新你在主表中的現有列。 嘗試不選擇該更新命令或使用單獨的表 > 更新工具來嘗試實現您的目標。
非常感謝。 在我沒有選擇該更新命令但從第二個表繼續之後,它可以工作。