Thai
Aug 14th, 2000, 11:52 AM
Hello, is there a way in sql to insert data into a "Master" table from a "Working" table and only insert the fields that are in the "Working" table which exist in the "Master" table without looping through the fields and building a statement?
Example:
Master Table Fields: PartNum, Desc, MFR, MFRNum
Working Table Fields: PartNum, Desc, Other Desc, MFR, MFRNum
Is there a way to insert all of the fields in working table into master table where the field working table exists in master? I have to loop through both tables and do a check against the fields to build an array of matching fields currently, but I was just wondering if theres an SQL function that will do it.
Thanks!
Thai
Example:
Master Table Fields: PartNum, Desc, MFR, MFRNum
Working Table Fields: PartNum, Desc, Other Desc, MFR, MFRNum
Is there a way to insert all of the fields in working table into master table where the field working table exists in master? I have to loop through both tables and do a check against the fields to build an array of matching fields currently, but I was just wondering if theres an SQL function that will do it.
Thanks!
Thai