Commit 53f11733 authored by Tom Lane's avatar Tom Lane

Provide some documentation for EXISTS, IN, NOT IN, ANY/SOME/ALL,

and row comparisons.  How'd this manage to slip through the cracks?
parent ac06a7a2
This diff is collapsed.
<!-- <!--
$Header: /cvsroot/pgsql/doc/src/sgml/syntax.sgml,v 1.53 2001/11/28 20:49:10 petere Exp $ $Header: /cvsroot/pgsql/doc/src/sgml/syntax.sgml,v 1.54 2001/12/01 04:19:20 tgl Exp $
--> -->
<chapter id="sql-syntax"> <chapter id="sql-syntax">
...@@ -845,7 +845,11 @@ CAST ( '<replaceable>string</replaceable>' AS <replaceable>type</replaceable> ) ...@@ -845,7 +845,11 @@ CAST ( '<replaceable>string</replaceable>' AS <replaceable>type</replaceable> )
<command>SELECT</command> in parentheses that returns exactly one <command>SELECT</command> in parentheses that returns exactly one
row with one column. It is an error to use a subquery that row with one column. It is an error to use a subquery that
returns more than one row or more than one column in the context returns more than one row or more than one column in the context
of a value expression. of a value expression. (But if, during a particular execution, the
subquery returns no rows, the scalar result is taken to be NULL.)
The subquery can refer to variables from the surrounding query,
which will act as constants during any one evaluation of the subquery.
See also <xref linkend="functions-subquery">.
</para> </para>
</listitem> </listitem>
</itemizedlist> </itemizedlist>
......
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