SQLite Flow Control Functions
As the name suggests, the flow control function is mainly used for flow control. This is similar to a statement in a programming language, if-elsea switchstatement. This page organizes flow control functions in SQLite.
-
coalesce
The SQLitecoalesce()
function returns the first non-null value in the parameter list. -
ifnull
The SQLiteifnull()
function is aif-else
function that returns the second parameter if the first parameter isNULL
, and otherwise returns the first parameter. -
iif
The SQLiteiif()
function has 3 parameters, if the first parameter is true, it returns the second parameter, otherwise it returns the third parameter. -
nullif
The SQLitenullif()
function returnsNULL
if both parameters are the same, otherwise returns the first argument.