Name

nullif() — Return NULL if parameters are equal

Common Usage

nullif( param1, param2 )

Description

The nullif() function returns NULL if the parameters are equal. If the two parameters are not equal, the first parameter is returned. If both parameters are NULL, a NULL is returned.

Get Using SQLite now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.