Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to go about this ?
Message
From
03/09/2001 06:43:46
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
03/09/2001 06:23:16
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00551747
Message ID:
00551755
Views:
16
>Hi all,
>
>I am trying to generate a SQL statement interactively based on values selected by the user. I am storing the final SQL statement in a memory variable of the form as shown below -
>
>cVar = "Select * From MY_TABLE WHERE Col1 = 'XXXX'"
>
>How can a execute this query which is stored in this variable ?
>
>Sincere thanks in advance.

You could do &cVar however I suggest you to break it into parts like this :

select &lcFieldList ;
from (lcFrom) ;
&lcWhere ;
&lcOrderBy

etc.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform