NULL represents missing, unknown or unavailable information.
It is not equivalent to zero or an empty string.
# To check NULL
SELECT *
FROM employees
WHERE salary IS NULL;
# Do not use salary = NULL.NULL represents missing, unknown or unavailable information.
It is not equivalent to zero or an empty string.
# To check NULL
SELECT *
FROM employees
WHERE salary IS NULL;
# Do not use salary = NULL.