Name

ifnull() — Return first non-NULL argument

Common Usage

ifnull( param1, param2 )

Description

The ifnull() function is basically a fixed two-parameter version of coalesce(). If param1 is not NULL, it is returned. If param1 is NULL, param2 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.