Files
doris/docs/en/sql-reference/sql-functions/conditional-functions/coalesce.md
steadyBoy 3d30209e9b [docs] add document conditional-functions (#8339)
Add conditional-functions.
2022-03-09 13:05:13 +08:00

1.2 KiB

title, language
title language
coalesce en

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                           |
+--------------------------------+

keyword

COALESCE