Login to manage your account

Please enter a valid email address.
Forgot Password?
Please enter a valid password.
OR

Don't have an account yet? Sign up

Which statement about NULL in MySQL is correct?

  1. A NULL equals NULL
  2. B NULL is the same as zero
  3. C Comparisons with NULL using = return NULL, so IS NULL must be used
  4. D NULL is the same as an empty string
Answer

Comparisons with NULL using = return NULL, so IS NULL must be used

NULL represents an unknown value, so any comparison with it is unknown rather than true or false. IS NULL and IS NOT NULL are the correct tests.

All MySQL MCQs

Login to manage your account

Please enter a valid email address.
Forgot Password?
Please enter a valid password.
OR

Don't have an account yet? Sign up as