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 the record with age IS NULL too:
+-------+------+
| name | age |
+-------+------+
| dan | 17 |
| pete | NULL |
| david | NULL |
+-------+------+
How can I get what I wants? Thanks for any responding.