Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Data type: FOR BIT DATA?

Status
Not open for further replies.

jasonswett

Programmer
Mar 27, 2007
2
US
Could someone please explain the concept of types being "FOR BIT DATA" to me? Here's the particular problem I'm having:

I have a SELECT statement that's something like this:
"SELECT col FROM table"
Where "col" is of type CHAR () FOR BIT DATA. If I run this query, I get some results. Let's say one of the results is "100".

If I then try to do this:
"SELECT col FROM table WHERE col='100'", it returns an empty set. What is the proper way to retrieve just this one record?

Thanks,
Jason
 
In this case the data is of type binary.
So, the representation of '100' does not mean 'hundred' , but the binary notation 100.


Ties Blom

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top