mysql> select 'a'='a','a'=' a','a'='a ','a'=' a ','a'<=>'a','a'<=>' a','a'<=>'a ','a'<=>' a ';
+---------+----------+----------+-----------+-----------+------------+------------+-------------+
| 'a'='a' | 'a'=' a' | 'a'='a ' | 'a'=' a ' | 'a'<=>'a' | 'a'<=>' a' | 'a'<=>'a ' | 'a'<=>' a ' |
+---------+----------+----------+-----------+-----------+------------+------------+-------------+
| 1 | 0 | 1 | 0 | 1 | 0 | 1 | 0 |
+---------+----------+----------+-----------+-----------+------------+------------+-------------+
mysql> select BINARY'a'='a ', BINARY'a'<=>'a ';
+----------------+------------------+
| BINARY'a'='a ' | BINARY'a'<=>'a ' |
+----------------+------------------+
| 0 | 0 |
+----------------+------------------+
mysql> select ''=null, ''!=null, ''<>null, ''<=>null, '' is null, '' is not null;
+---------+----------+----------+-----------+------------+----------------+
| ''=null | ''!=null | ''<>null | ''<=>null | '' is null | '' is not null |
+---------+----------+----------+-----------+------------+----------------+
| NULL | NULL | NULL | 0 | 0 | 1 |
+---------+----------+----------+-----------+------------+----------------+
mysql> select null=null, null!=null, null<>null, null<=>null, null is null, null is not null;
+-----------+------------+------------+-------------+--------------+------------------+
| null=null | null!=null | null<>null | null<=>null | null is null | null is not null |
+-----------+------------+------------+-------------+--------------+------------------+
| NULL | NULL | NULL | 1 | 1 | 0 |
+-----------+------------+------------+-------------+--------------+------------------+