Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using variable in SQL Select statement
Message
 
To
08/01/2001 17:48:33
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00460861
Message ID:
00460867
Views:
8
>>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.

Yea that works. For some reason I thought I tried that already . . . Oh well, thanks for the answer - it works.
Al Williams

Anola MB, CANADA
Previous
Reply
Map
View

Click here to load this message in the networking platform