Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Where portion of Select statement
Message
 
 
To
23/09/1999 14:30:23
Pierre Richard
Méthotech Canada Limitée
Kirkland, Quebec, Canada
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00268128
Message ID:
00268164
Views:
26
>I need a view based on the user which is currently logged in my app. I have set a global variable containing this user's ID.
>
>Can I use the content of this global variable as in:
>Select * ;
> from MyTable ;
> where MyTbale.User_Id = MyGlobalVariable'sContent
>
>What would be the correct syntax for the where portion of the statement so that I could extract the content of the variable ?
>
>TIA
>
>Pierre Richard

Precede the parameter with a question mark:

where MyTbale.User_Id = ?MyGlobalVariable'sContent
Mark McCasland
Midlothian, TX USA
Previous
Reply
Map
View

Click here to load this message in the networking platform