my_table
contains the enabled
field which is defined as: enabled BIT NOT NULL DEFAULT 0
.
This table has multiple rows with enabled = b'0'
, and multiple rows with enabled = b'1'
.
However, both this:
SELECT * from my_table WHERE enabled = b'0';
and this:
SELECT * from my_table WHERE enabled = b'1';
show blank in the enabled
column:
+----+---------+
| id | enabled |
+----+---------+
| 1 | |
| 2 | |
+----+---------+
Why is that? How could I see the value of the enabled
field?
$ mysql --version
mysql Ver 14.14 Distrib 5.1.63, for debian-linux-gnu (x86_64) using readline 6.1