Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to use an iif in T_select
Message
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Titre:
How to use an iif in T_select
Divers
Thread ID:
01537399
Message ID:
01537399
Vues:
64
Hi.
I want to select from avtable , based on a Parameter (Say X)
e.g. If Parameter = Blank, select all records, else select where a Filed eqauls parameter value

In VFP, following works:
SELECT * FROM MyTable WHERE IIF(X= " ",.t.,REF == X)

Can something similar be done in Sql (Above simplified version... I could have 5 Where conditions)
Tia
Gerard
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform