Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Updating one table with data from another
Message
De
31/03/2001 16:11:23
 
 
À
31/03/2001 15:27:50
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00490636
Message ID:
00490640
Vues:
7
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform