Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Creating a view with a variable condition?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00474379
Message ID:
00474386
Vues:
34
>Hi all,
>
>Is possible to create a view that holds a variable condition?
>
>This is for not creating a bunch of view each one with different conditions.
>
>The cool would be any similar to:
>
>CREATE SQL VIEW ... WHERE &mycondition
>
>And inside mi programs doing:
>
>mycondition = "totalsales > 500000"
>
>in another:
>
>mycondition > "state ='FL'"
>
>and so.
>
>Thanks,

Hi Pablo.
If not create a view?
Ex:
lcCondition = [ TotalSales > 500000 ]
lcCommand = [ SELECT * FROM MyTable WHERE ] + lcCondition
&lcCommand
¿Esto no es lo que quieres, verdad?
Luis María Guayán
Tucumán, Argentina
________________________________
SysOp de www.PortalFox.com
Nada corre como un zorro
________________________________
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform