Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
IIF in a SQL Statement
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Divers
Thread ID:
00810425
Message ID:
00810427
Vues:
12
Hi,

SQL Server uses 1 for true, 0 for false.

hope that helps!

-Justin

>Hi.
>Usually when I have few comboboxes on a screen, I pass the criterias to the SQL Statement directly like this :
>Office = '191' *variable of one combobox
>
>Select * from table1 where iif(Office = 'ALL',.T.,table1.office = ?office)
>
>If the combobox's value is 'ALL', then the expression returns .t.
>
>This works fine in VFP but what about SQL Server or remote views !
>
>SQL Server does not understand .t. or true in the SQL statement.
>
>How should I recreate the same functionallity ?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform