Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Variable in a WHERE statement
Message
De
11/05/2000 02:25:36
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00368421
Message ID:
00368426
Vues:
23
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform