-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added english coalesce() function help
- Loading branch information
1 parent
68cfb6c
commit 89811ae
Showing
1 changed file
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<h3>coalesce() function</h3> | ||
Returns the first non-NULL value from the expression list. | ||
<br> | ||
This function can take any number of arguments. | ||
<h4>Syntax</h4> | ||
<code>coalesce(expression1, expression2 ...)</code><br> | ||
|
||
<h4>Arguments</h4> | ||
<code>expression</code> - any valid expression or value, irregardless of type. | ||
<br> | ||
|
||
<h4>Example</h4> | ||
<!-- Show example of function.--> | ||
<code>coalesce(NULL, 2) → 2</code><br> | ||
<code>coalesce(NULL, 2, 3) → 2</code><br> | ||
<code>coalesce(7, NULL, 3*2) → 7</code><br><br> | ||
<code>coalesce("fieldA", "fallbackField", 'ERROR') → value of fieldA if it is non-NULL | ||
else the value of "fallbackField" or the string 'ERROR' if both are NULL</code><br> | ||
|