Explain COALESCE example in the docs.
authorBruce Momjian
Wed, 5 Oct 2011 01:47:07 +0000 (21:47 -0400)
committerBruce Momjian
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 <> 0 THEN y/x > 1.5 ELSE false END;
 
 SELECT COALESCE(description, short_description, '(none)') ...
 
+   This returns description if it is not null, or
+   short_description if it is not null, or (none).