Skip to content
Snippets Groups Projects
Commit 405728f6 authored by Peter Eisentraut's avatar Peter Eisentraut
Browse files

Add some minimal documentation that the SQL standard requires parentheses

after ONLY.
parent bf21cdb7
No related branches found
No related tags found
No related merge requests found
<!-- <!--
$PostgreSQL: pgsql/doc/src/sgml/ref/select.sgml,v 1.116 2008/12/31 23:42:56 tgl Exp $ $PostgreSQL: pgsql/doc/src/sgml/ref/select.sgml,v 1.117 2009/01/12 14:06:20 petere Exp $
PostgreSQL documentation PostgreSQL documentation
--> -->
...@@ -1457,6 +1457,19 @@ SELECT distributors.* WHERE distributors.name = 'Westward'; ...@@ -1457,6 +1457,19 @@ SELECT distributors.* WHERE distributors.name = 'Westward';
</para> </para>
</refsect2> </refsect2>
<refsect2>
<title><literal>ONLY</literal> and Parentheses</title>
<para>
The SQL standard requires parentheses around the table name
after <literal>ONLY</literal>, as in <literal>SELECT * FROM ONLY
(tab1), ONLY (tab2) WHERE ...</literal>. PostgreSQL supports that
as well, but the parentheses are optional. (This point applies
equally to all SQL commands supporting the <literal>ONLY</literal>
option.)
</para>
</refsect2>
<refsect2> <refsect2>
<title>Namespace Available to <literal>GROUP BY</literal> and <literal>ORDER BY</literal></title> <title>Namespace Available to <literal>GROUP BY</literal> and <literal>ORDER BY</literal></title>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment