scalar
NULLIF
Returns NULL when the arguments compare equal, otherwise returns the first value. Example target: PostgreSQL 17. No tables or extensions required.
Formal Syntax & Structure
sql syntaxsql
NULLIF(a,b)Working Example
Example Snippetsql
SELECT nullif(5,5);