Gebruik <=>
SELECT NOT 1 <=> 1,NOT NULL <=> NULL, NOT 1 <=> NULL, NOT 1 <=> 2, 1 <> 1, NULL <> NULL, 1 <> NULL, 1 <>2;
+-------------+-------------------+----------------+-------------+--------+--------------+-----------+-------+
| NOT 1 <=> 1 | NOT NULL <=> NULL | NOT 1 <=> NULL | NOT 1 <=> 2 | 1 <> 1 | NULL <> NULL | 1 <> NULL | 1 <>2 |
+-------------+-------------------+----------------+-------------+--------+--------------+-----------+-------+
| 0 | 0 | 1 | 1 | 0 | NULL | NULL | 1 |
+-------------+-------------------+----------------+-------------+--------+--------------+-----------+-------+
ps. Sorry, had de handleiding moeten lezen voordat je een vraag post, maar hopelijk helpt het iemand anders.