Null safe equals operator <=>
<=> Operator is used to compare NULL values with the fields. If normal =(equals) Operators return NULL if one of the comparison value is NULL. With <=> operator returns true or false. <=> Operator is same as IS NULL.
|
SELECT NULL = NULL,
NULL <=> NULL,
NULL IS NULL;
|
Null safe not equals operator [NOT <=>]
NOT <=> Operator is used to compare NULL values with the fields. If normal != or <> (not equals) Operators return NULL if one of the comparison value is NULL. With NOT <=> operator returns true or false. NOT <=> Operator is same as IS NOT NULL.
|
SELECT NULL != NULL,
NOT NULL <=> NULL,
NULL IS NOT NULL;
|