Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Updating one table with data from another
Message
From
31/03/2001 16:11:23
 
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00490636
Message ID:
00490640
Views:
8
You need to use a SCAN or a if loop to skip through your target table. Set a relation from your target table to the source table. Make sure the relationship mimics the primekey on your source table. You can set a primekey on the target table but I usually do not do this for small tables.

select target
scan
if not eof("source")
replace target. , .... with source. ,...
endif
endscan


Your target table would be the table your are making the updates to.
C. W. Finch Consulting
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform