SELECT * FROM 'client' WHERE avatar <=> NULL
This returned the only two items you have in the database, both for <=>
and =
. Another test I did was with <=>
, which returns all items that the =
column is different <>
, for this avatar
up.
What is the purpose of the NULL
operator in MySQL? Is there equality with the equality operator? When should it be used?