Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Updating one table with data from another
Message
De
02/04/2001 17:48:07
 
 
À
31/03/2001 16:11:23
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:
00491113
Vues:
9
Hi Claude,
I tried your suggestion for scan code:
close table all
use student in 0
use xstud in 0
select student

scan
  if not eof("xstud")
   replace student.cstud_id with xstud.cstud_id
  endif
endscan
The program only updates 1 record. the first cstud_id from the xstud table updates the correct key in the student table. What am I missing to update the rest of the records? xstud is related to student in the database with a one-to-one relationship. xstud is the table and student is the related table. Do I need to set index on either table. On both tables, I have a primary cstud_key index (aaaa) and an index on the cstud_id (id).

Thanks for your help.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform