Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Returning a bit value
Message
From
26/08/1999 10:16:31
 
 
To
All
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Title:
Returning a bit value
Miscellaneous
Thread ID:
00257898
Message ID:
00257898
Views:
42
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
Next
Reply
Map
View

Click here to load this message in the networking platform