Explain COALESCE example in the docs.
This commit is contained in:
parent
41e461d36f
commit
9d23d7cdaf
@ -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…
x
Reference in New Issue
Block a user