projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
41e461d
)
Explain COALESCE example in the docs.
author
Bruce Momjian
<
[email protected]
>
Wed, 5 Oct 2011 01:47:07 +0000
(21:47 -0400)
committer
Bruce Momjian
<
[email protected]
>
Wed, 5 Oct 2011 01:47:51 +0000
(21:47 -0400)
doc/src/sgml/func.sgml
patch
|
blob
|
blame
|
history
diff --git
a/doc/src/sgml/func.sgml
b/doc/src/sgml/func.sgml
index 0b6a109432ee1ace576c9b3653f233239cde3468..2f307c2b121f6460cd7b275b84bf972711b641eb 100644
(file)
--- a/
doc/src/sgml/func.sgml
+++ b/
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>