Explain COALESCE example in the docs.

pull/1/head
Bruce Momjian 14 years ago
parent 41e461d36f
commit 9d23d7cdaf
  1. 2
      doc/src/sgml/func.sgml

@ -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…
Cancel
Save