Clarify NULLIF example

found by "Vesa-Matti J Kari" <vmkari@cc.helsinki.fi>
This commit is contained in:
Peter Eisentraut 2009-07-22 18:07:26 +00:00
parent 846c364dd4
commit 2afa73a9e8
1 changed files with 4 additions and 3 deletions

View File

@ -1,4 +1,4 @@
<!-- $PostgreSQL: pgsql/doc/src/sgml/func.sgml,v 1.482 2009/06/17 21:58:49 tgl Exp $ --> <!-- $PostgreSQL: pgsql/doc/src/sgml/func.sgml,v 1.483 2009/07/22 18:07:26 petere Exp $ -->
<chapter id="functions"> <chapter id="functions">
<title>Functions and Operators</title> <title>Functions and Operators</title>
@ -9193,8 +9193,9 @@ SELECT NULLIF(value, '(none)') ...
</programlisting> </programlisting>
</para> </para>
<para> <para>
If <replaceable>value1</replaceable> is <literal>(none)</>, return a null, In this example, if <literal>value</literal> is <literal>(none)</>,
otherwise return <replaceable>value1</replaceable>. null is returned, otherwise the value of <literal>value</literal>
is returned.
</para> </para>
</sect2> </sect2>