Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Returning a bit value
Message
De
26/08/1999 10:16:31
 
 
À
Tous
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Titre:
Returning a bit value
Divers
Thread ID:
00257898
Message ID:
00257898
Vues:
43
Hi,

With SQL server using 1/0 for logical values ... if I want to return a real "logical" value, how do I do it? If I just select 1 or 0, it is coming across as the integers 1 or 0.

For example: "Select 1" returns the integer 1. I'm currently using "Select cast(1 as bit)" which works, but seems awkward - there's got to be a better way.

TIA!
Ken B. Matson
GCom2 Solutions
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform