Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Update statement
Message
De
16/01/2002 22:32:16
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00605218
Message ID:
00605896
Vues:
14
>Bob,
>
>Actually checking the VFP 7.0 help file, it also does not support SELECT in the WHERE clause of the UPDATE command.

The funny thing is, since VFP support inline UDF's in select, he could actually do what he wanted by abstracting the sub query into a function call... like:
UPDATE MyTable
SET MyField = MyFunction(MyTable.PK)



Function MyFunction
LPARAMETERS iPK

SELECT TheValue FROM TheTable WHERE FK = iPK INTO CURSOR curTEMP

Return curTEMP.TheValue
BOb
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform