mirror of
https://github.com/postgres/postgres.git
synced 2025-07-30 11:03:19 +03:00
Explain COALESCE example in the docs.
This commit is contained in:
@ -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>
|
||||
|
Reference in New Issue
Block a user