mirror of
https://github.com/postgres/postgres.git
synced 2026-02-26 03:11:02 -05:00
Explain COALESCE example in the docs.
This commit is contained in:
parent
41e461d36f
commit
9d23d7cdaf
1 changed files with 2 additions and 0 deletions
|
|
@ -10015,6 +10015,8 @@ SELECT ... WHERE CASE WHEN x <> 0 THEN y/x > 1.5 ELSE false END;
|
|||
<programlisting>
|
||||
SELECT COALESCE(description, short_description, '(none)') ...
|
||||
</programlisting>
|
||||
This returns <varname>description</> if it is not null, or
|
||||
<varname>short_description</> if it is not null, or <literal>(none)</>.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
|
|
|
|||
Loading…
Reference in a new issue