Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL Server select syntax
Message
 
 
À
28/06/2005 15:48:53
Stephen Hunt
Admit Computer Services Inc.
Farmingdale, New York, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
01027150
Message ID:
01027199
Vues:
19
>Does SQL Server have anything like VFP's IIF where I can check if the user leaves the judgecode blank and I would add the following in VFP
>"where IIF(!EMPTY(parameter),judgecode=parameter,!empty(judgecode))"

See CASE function in BOL. You don't have to do things in SQL the same way as you do in VFP. In fact, you shouldn't because T-SQL has its own ways to do things. Can you explain what that convoluted expression/condition suppouse to do?
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform