Explain COALESCE example in the docs.

This commit is contained in:
Bruce Momjian 2011-10-04 21:47:07 -04:00
parent 41e461d36f
commit 9d23d7cdaf

View File

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