Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Subquery with Update-SQL
Message
De
28/10/1999 06:22:01
 
 
À
28/10/1999 05:31:36
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00282860
Message ID:
00282874
Vues:
15
>The documentation says that subquerys are allowed with update-sql but I have never got one working. I want to assign a value to a field as result of a subquery. I have tried something like this. The result of the subquery is unique and has the same type like the target field.
>
>update fauk_work set attribute25=(select attr from fa_dept_conv where code=fauk_work.attribute22)
>
>Any ideas?

I think that subqueries are only supported in the WHERE clause for the UPDATE command.

>
>Thanks in advance
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform