Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb0cb40f

Browse files
committed
docs: improve TABLE command by showing supported clauses
Initial patch by Colin 't Hart
1 parentea177a3 commitb0cb40f

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

‎doc/src/sgml/ref/select.sgml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ TABLE [ ONLY ] <replaceable class="parameter">table_name</replaceable> [ * ]
214214
subqueries that can be referenced by name in the primary query.
215215
The subqueries effectively act as temporary tables or views
216216
for the duration of the primary query.
217-
Each subquery can be a <command>SELECT</command>, <command>VALUES</command>,
217+
Each subquery can be a <command>SELECT</command>, <command>TABLE</>, <command>VALUES</command>,
218218
<command>INSERT</command>, <command>UPDATE</command> or
219219
<command>DELETE</command> statement.
220220
When writing a data-modifying statement (<command>INSERT</command>,
@@ -1489,12 +1489,17 @@ SELECT * FROM (SELECT * FROM mytable FOR UPDATE) ss ORDER BY column1;
14891489
<programlisting>
14901490
TABLE <replaceable class="parameter">name</replaceable>
14911491
</programlisting>
1492-
iscompletelyequivalent to
1492+
is equivalent to
14931493
<programlisting>
14941494
SELECT * FROM <replaceable class="parameter">name</replaceable>
14951495
</programlisting>
14961496
It can be used as a top-level command or as a space-saving syntax
1497-
variant in parts of complex queries.
1497+
variant in parts of complex queries. Only the <literal>WITH</>,
1498+
<literal>UNION</>, <literal>INTERSECT</>, <literal>EXCEPT</>,
1499+
<literal>ORDER BY</>, <literal>LIMIT</>, <literal>OFFSET</>,
1500+
<literal>FETCH</> and locking clauses can be used with <command>TABLE</>;
1501+
the <literal>WHERE</> clause and any form of aggregation cannot
1502+
be used.
14981503
</para>
14991504
</refsect2>
15001505
</refsect1>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp