Usar <=>
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 |
+-------------+-------------------+----------------+-------------+--------+--------------+-----------+-------+
PD. Lo siento, debería haber leído el manual antes de publicar una pregunta, pero espero que ayude a alguien más.