mysql: select query when the column that has condition on has NULL value
问题 This is my example table: CREATE TABLE test( name VARCHAR(35), age INT(3)) And some values: insert into test values ('alex', 13); insert into test values ('dan', 17); insert into test (name) values ('pete'); insert into test (name) values ('david'); When I use SELECT query with the condition on column 'age': select * from test where age!=13; The result I got is: +------+------+ | name | age | +------+------+ | dan | 17 | +------+------+ But I want all the record with age!=13 which includes