Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Iif(active,code,'\'+code)
Message
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Versions des environnements
SQL Server:
SQL Server 2008
Divers
Thread ID:
01542446
Message ID:
01542452
Vues:
52
This message has been marked as a message which has helped to the initial question of the thread.
>how do you do this in sqlserver:
>
>SELECT IIF(active,"\"+code,code) as code,title,statute_id FROM statute ORDER BY 1
>
>
>use for enabling/disabling items in combobox
>
>thanks
>
>Peter

You can use CASE in a select statement. Look in Books Online for CASE.
____________________________________

Don't Tread on Me

Overthrow the federal government NOW!
____________________________________
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform