coalesce
coalesceβ
descriptionβ
Syntaxβ
coalesce(expr1, expr2, ...., expr_n)
Returns the first non empty expression in the parameter (from left to right)
exampleβ
mysql> select coalesce(NULL, '1111', '0000');
+--------------------------------+
| coalesce(NULL, '1111', '0000') |
+--------------------------------+
| 1111 |
+--------------------------------+
keywordsβ
COALESCE