Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL Update
Message
De
05/01/2005 19:27:09
Robert Dinsmore
Dinsmore & Associates, Inc.
Lexington, Kentucky, États-Unis
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
SQL Update
Versions des environnements
Visual FoxPro:
VFP 7
OS:
Windows 2000 SP4
Database:
Visual FoxPro
Divers
Thread ID:
00974570
Message ID:
00974570
Vues:
58
I wish to update a table using the SQL Update command. I wish to replace a field in the table with a value located in a temporary cursor:

UPDATE LiveTable SET f02AID = temp.tm_new_aid;
WHERE LiveTable.f02AID in select(temp.f02AID from temp where; temp.tm_chg = "Y")

Table temp contains the old ID (f02AID) and the new ID (tm_new_aid)

This doesn't seem to work as I get a number of changes that result in a new ID of blank.

Anyone have a technique for this?
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform