Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can you do an UPDATE like this?
Message
De
23/02/2000 10:44:21
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Can you do an UPDATE like this?
Divers
Thread ID:
00336023
Message ID:
00336023
Vues:
68
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

Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform