Explain COALESCE example in the docs.
authorBruce Momjian <[email protected]>
Wed, 5 Oct 2011 01:47:07 +0000 (21:47 -0400)
committerBruce Momjian <[email protected]>
Wed, 5 Oct 2011 01:47:51 +0000 (21:47 -0400)
doc/src/sgml/func.sgml

index 0b6a109432ee1ace576c9b3653f233239cde3468..2f307c2b121f6460cd7b275b84bf972711b641eb 100644 (file)
@@ -10015,6 +10015,8 @@ SELECT ... WHERE CASE WHEN x &lt;&gt; 0 THEN y/x &gt; 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>