Home » MYSQL » MySQL Functions » Question
  1. Which function returns NULL if expr1 = expr2?
    1. IFNULL()
    2. NULLIF()
    3. IF()
    4. CASE
    5. None of these
Correct Option: B

The ‘CASE’ is used for the case operator. The function ‘IF()’ is used for the if/else construct. The function ‘IFNULL()’ is the Null if/else construct. ‘NULLIF()’ returns NULL if expr1 = expr2.



Your comments will be displayed only after manual approval.