Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using variable in SQL Select statement
Message
From
08/01/2001 17:48:33
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00460861
Message ID:
00460866
Views:
11
>For example, the following code works:
>select * from tblgl order by tblgl.tempgl into cursor test
>The code below does not work:
>ctemp = "tblgl.tempgl"
>select * from tblgl order by (ctemp) into cursor test
>Is there a way to use a memory variable in a SQL Select statement?

Try :

select * from tblgl order by &ctemp into cursor test

that should work for you.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform