8000 Explain COALESCE example in the docs. · postgres/postgres@9d23d7c · GitHub
[go: up one dir, main page]

Skip to content

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 9d23d7c

Browse files
committed
Explain COALESCE example in the docs.
1 parent 41e461d commit 9d23d7c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

doc/src/sgml/func.sgml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10015,6 +10015,8 @@ SELECT ... WHERE CASE WHEN x <> 0 THEN y/x > 1.5 ELSE false END;
1001510015
<programlisting>
1001610016
SELECT COALESCE(description, short_description, '(none)') ...
1001710017
</programlisting>
10018+
This returns <varname>description</> if it is not null, or
10019+
<varname>short_description</> if it is not null, or <literal>(none)</>.
1001810020
</para>
1001910021

1002010022
<para>

0 commit comments

Comments
 (0)
0