Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL Update
Message
From
20/04/1999 14:12:32
 
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Miscellaneous
Thread ID:
00210164
Message ID:
00210219
Views:
28
>UPDATE table1
>SET table1.field1 = table2.field2
>WHERE table1.key = table2.key
>
>So how do I do this?

>-Michelle

You can accomplish this by relating the two tables and then doing a replace...

select 0
use Table2
set order to tag PrimaryKey

select 0
use Table1
set relation to table1.key into table2

replace all table1.field1 with table2.field2

close all

BOb
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform