Commit 9d23d7cd authored by Bruce Momjian's avatar Bruce Momjian

Explain COALESCE example in the docs.

parent 41e461d3
...@@ -10015,6 +10015,8 @@ SELECT ... WHERE CASE WHEN x <> 0 THEN y/x > 1.5 ELSE false END; ...@@ -10015,6 +10015,8 @@ SELECT ... WHERE CASE WHEN x <> 0 THEN y/x > 1.5 ELSE false END;
<programlisting> <programlisting>
SELECT COALESCE(description, short_description, '(none)') ... SELECT COALESCE(description, short_description, '(none)') ...
</programlisting> </programlisting>
This returns <varname>description</> if it is not null, or
<varname>short_description</> if it is not null, or <literal>(none)</>.
</para> </para>
<para> <para>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment