Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is there a SQL-Server version of IIF()
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Divers
Thread ID:
00117628
Message ID:
00117629
Vues:
11
>Does anyone know if there is a SQL Server function which is like IIF() in VFP? I want to do a select statment like the following...
>
>SQLEXEC(1,"select iif(lCondition,'Yes','No') from Table")
>
>Thanks,

Select "Newfield" = Case When lCondition=1 Then 'Yes' Else 'No' End From Table1
Edward Pikman
Independent Consultant
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform