Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Subquery with Update-SQL
Message
From
28/10/1999 06:22:01
 
 
To
28/10/1999 05:31:36
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00282860
Message ID:
00282874
Views:
16
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform