azzazzello
Technical User
MysqL version 5.0.7
I have a table where a field blah is of type char(1). All of the rows have blah as NULL. When I do this
I get an empty set. Huh?!? I tried it with a bunch of other fields, of types datetime, varchar, int. All nicely return 5 rows where blah is NULL (aka, not equal to 'B'). What gives?
I have a table where a field blah is of type char(1). All of the rows have blah as NULL. When I do this
Code:
SELECT * from mytable WHERE blah != 'B' LIMIT 5;
I get an empty set. Huh?!? I tried it with a bunch of other fields, of types datetime, varchar, int. All nicely return 5 rows where blah is NULL (aka, not equal to 'B'). What gives?