Syntax

    1. mysql> select nullif(1,1);
    2. | nullif(1, 1) |
    3. | NULL |
    4. +--------------+
    5. | nullif(1, 0) |
    6. +--------------+
    7. | 1 |
    8. +--------------+