Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL with iif()
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Divers
Thread ID:
00802439
Message ID:
00802739
Vues:
24
>Thanks Sergey,
>
>I'l give that a try. Is there any reason to avoid using iif() in the SQL? I just got in the habit of avoiding that for some reason.

Hi Cris,

I'm with you on this one. I prefer to use whatever options SELECT SQL provides first because Query Optimizer could better optimize query in this case. The second reason, I've had bad experience in using IIF() in WHERE clause when such condition produced totally unexpected and unexplained results.
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform