SQLite NULLIF() Function
Definition and Usage
The NULLIF() function returns NULL if the two arguments are equal, else it returns the first argument.
Tip: Also look at IFNULL(), COALESCE().
Syntax
NULLIF(value1, value2)
Parameter Values
| Parameter | Description |
|---|---|
| value1 | Required. The first value |
| value2 | Required. The value to compare with |
Technical Details
| Return type: | Same as the first value |
|---|