Loading lesson path
Concept visual
Start at both ends
SELECT NULLIF(25, 25);The NULLIF() function compares two expressions and returns NULL if they are equal. Otherwise, the first expression is returned.
expr1, expr2 )
Description expr1, expr2 Required. The two expressions to be compared
From MySQL 4.0
SELECT NULLIF(25, "Hello");SELECT NULLIF("Hello", "world");SELECT NULLIF("2017-08-25", "2017-08-25");❮ MySQL Functions