Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Update multiple fields with update SQL
Message
From
05/03/2004 10:48:48
 
 
To
05/03/2004 10:16:10
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00883470
Message ID:
00883489
Views:
7
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform