Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can you do an UPDATE like this?
Message
From
23/02/2000 10:44:21
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Can you do an UPDATE like this?
Miscellaneous
Thread ID:
00336023
Message ID:
00336023
Views:
69
I'm trying to write an SQL UPDATE but I'm not having any luck.
It looks like this:

UPDATE TAB1 JOIN TAB2 ON TAB2.FIELD = TAB1.FIELD SET TAB1.PK = TAB2.PK

I want to update TAB1.PK with TAB2.PK where TAB1.FIELD = TAB2.FIELD and there's an one to one relation between the two FIELD:s.
I don't know what I'm doin wrong but all TAB1.PK equals record no one PK in TAB2.
Any ideas???
Magnus Nordin
VFP MCP

"We have tested the GUI on 5-year olds. Why? Beacuse they aren't braindead!"
Michael Spindler, Apple

Next
Reply
Map
View

Click here to load this message in the networking platform