Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Update multiple fields with update SQL
Message
De
05/03/2004 10:48:48
 
 
À
05/03/2004 10:16:10
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00883470
Message ID:
00883489
Vues:
8
Hi guillaume,

i think an sql update instruction is just doing one record. so you have to put the update also in a scan.

select 2
scan
UPDATE 1 set 1.c = 2.c WHERE 1.a =2.a
endscan


I think the best way is to set a relation between 1 and 2 and then do a replace 1.c with 2.c where 1.a = 2.a
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform