Commit 3766e99c authored by Peter Eisentraut's avatar Peter Eisentraut

Add a note that AND and OR are commutative. Apparently, they are not in

certain other products.
parent 4c3c8c04
<!-- <!--
$Header: /cvsroot/pgsql/doc/src/sgml/func.sgml,v 1.163 2003/07/31 22:17:11 tgl Exp $ $Header: /cvsroot/pgsql/doc/src/sgml/func.sgml,v 1.164 2003/08/04 14:00:13 petere Exp $
PostgreSQL documentation PostgreSQL documentation
--> -->
...@@ -162,6 +162,14 @@ PostgreSQL documentation ...@@ -162,6 +162,14 @@ PostgreSQL documentation
</tgroup> </tgroup>
</informaltable> </informaltable>
</para> </para>
<para>
The operators <literal>AND</literal> and <literal>OR</literal> are
commutative, that is, you can switch the left and right operand
without affecting the result. But see <xref
linkend="syntax-express-eval"> for more information about the
order of evaluation of subexpressions.
</para>
</sect1> </sect1>
<sect1 id="functions-comparison"> <sect1 id="functions-comparison">
......
<!-- <!--
$Header: /cvsroot/pgsql/doc/src/sgml/syntax.sgml,v 1.79 2003/06/19 23:22:40 tgl Exp $ $Header: /cvsroot/pgsql/doc/src/sgml/syntax.sgml,v 1.80 2003/08/04 14:00:14 petere Exp $
--> -->
<chapter id="sql-syntax"> <chapter id="sql-syntax">
...@@ -1216,7 +1216,7 @@ SELECT name, (SELECT max(pop) FROM cities WHERE cities.state = states.name) ...@@ -1216,7 +1216,7 @@ SELECT name, (SELECT max(pop) FROM cities WHERE cities.state = states.name)
</para> </para>
</sect2> </sect2>
<sect2> <sect2 id="syntax-express-eval">
<title>Expression Evaluation</title> <title>Expression Evaluation</title>
<para> <para>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment