MySQLとPostgreSQL t1 +------+------+ | id | val | +------+------+ | 1 | 12 | | 2 | 13 | | 3 | NULL | | 4 | 14 | +------+------+ mysql> SELECT * FROM t1 WHERE val<=>13; +------+------+ | id | val | +------+------+ | 2 | 13 | +------+------+ db=# SELECT * FROM t1 WHERE val IS NOT DISTINCT FROM 13; id | val ----+----- 2 | 13 mysql> SELECT * FROM t1 WHERE val<=>null; +------+------+ | id | val | +------+------+ | 3 | NULL | +------+------+ sakaitest_nvme5=# SELECT * FROM t1 WHERE val IS NOT DISTINCT FROM null; id | val ----+----- 3 |