Example
Compare two expressions:
SELECT NULLIF(25, 25);
Definition and Usage
The NULLIF() function compares two expressions and returns NULL if they are equal. Otherwise, the first expression is returned.
Syntax
NULLIF(expr1, expr2)
Compare two expressions:
SELECT NULLIF(25, 25);
The NULLIF() function compares two expressions and returns NULL if they are equal. Otherwise, the first expression is returned.
NULLIF(expr1, expr2)