Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Variable in a WHERE statement
Message
From
11/05/2000 02:25:36
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00368421
Message ID:
00368426
Views:
24
>I am using the following command for a remote view.
>
> create SQL VIEW myview REMOTE CONNECTION myconnection AS ;
> SELECT *;
> FROM database.table1 table1, ;
> database.table2 table2 ;
> WHERE table1.field1 = table2.field2
>
>I would like to change the WHERE statement in :
>
> WHERE table1.field1 = table2.field2 and ;
>
> table1.field3 > m.avalue
>
>m.avalue is a memory vaiable containing an integer.
>
>This doesn't work .
>If anybody has a solution, thanks in advance.
>
>Sena


Sena,
Use parameterized view.
WHERE table1.field1 = table2.field2 and table1.field3 > ?m.avalue
You could then populate m.avalue anywhere and requery (most likely you'd use "nodataonload =.t.")
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