Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL Update
Message
 
 
À
05/01/2005 19:27:09
Robert Dinsmore
Dinsmore & Associates, Inc.
Lexington, Kentucky, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 7
OS:
Windows 2000 SP4
Database:
Visual FoxPro
Divers
Thread ID:
00974570
Message ID:
00974571
Vues:
30
>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?

You can do such UPDATE in VFP9 with FROM clause. In previous versions you can use kludgy way as shown in Re: GATHER NAME vs APPEND Message #914947
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform