Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

update query 1

Status
Not open for further replies.

WorkWatching

Programmer
May 29, 2006
2
RO
hy guys

plz help

i have imported with ODBC a FoxPro Table which i have to add some more field, till now, no problem

now i have to import again the same table, but i need to update the old one, the fields i add must stay, the rest of the fields have to update (if there are more record, to add, or old oane changed)

plz help

tx
 

UPDATE OldImported As O RIGHT JOIN NewImporting As N ON
O.PrimaryKey = N.PrimaryKey
Set O.FieldName1 = N.FieldName1,
O.FieldName2 = N.FieldName2,
...
O.FieldNameLast = N.FieldNameLast

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top