Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
b0cb40f9
Commit
b0cb40f9
authored
Mar 07, 2014
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
docs: improve TABLE command by showing supported clauses
Initial patch by Colin 't Hart
parent
ea177a3b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
doc/src/sgml/ref/select.sgml
doc/src/sgml/ref/select.sgml
+8
-3
No files found.
doc/src/sgml/ref/select.sgml
View file @
b0cb40f9
...
@@ -214,7 +214,7 @@ TABLE [ ONLY ] <replaceable class="parameter">table_name</replaceable> [ * ]
...
@@ -214,7 +214,7 @@ TABLE [ ONLY ] <replaceable class="parameter">table_name</replaceable> [ * ]
subqueries that can be referenced by name in the primary query.
subqueries that can be referenced by name in the primary query.
The subqueries effectively act as temporary tables or views
The subqueries effectively act as temporary tables or views
for the duration of the primary query.
for the duration of the primary query.
Each subquery can be a <command>SELECT</command>, <command>VALUES</command>,
Each subquery can be a <command>SELECT</command>, <command>
TABLE</>, <command>
VALUES</command>,
<command>INSERT</command>, <command>UPDATE</command> or
<command>INSERT</command>, <command>UPDATE</command> or
<command>DELETE</command> statement.
<command>DELETE</command> statement.
When writing a data-modifying statement (<command>INSERT</command>,
When writing a data-modifying statement (<command>INSERT</command>,
...
@@ -1489,12 +1489,17 @@ SELECT * FROM (SELECT * FROM mytable FOR UPDATE) ss ORDER BY column1;
...
@@ -1489,12 +1489,17 @@ SELECT * FROM (SELECT * FROM mytable FOR UPDATE) ss ORDER BY column1;
<programlisting>
<programlisting>
TABLE <replaceable class="parameter">name</replaceable>
TABLE <replaceable class="parameter">name</replaceable>
</programlisting>
</programlisting>
is
completely
equivalent to
is equivalent to
<programlisting>
<programlisting>
SELECT * FROM <replaceable class="parameter">name</replaceable>
SELECT * FROM <replaceable class="parameter">name</replaceable>
</programlisting>
</programlisting>
It can be used as a top-level command or as a space-saving syntax
It can be used as a top-level command or as a space-saving syntax
variant in parts of complex queries.
variant in parts of complex queries. Only the <literal>WITH</>,
<literal>UNION</>, <literal>INTERSECT</>, <literal>EXCEPT</>,
<literal>ORDER BY</>, <literal>LIMIT</>, <literal>OFFSET</>,
<literal>FETCH</> and locking clauses can be used with <command>TABLE</>;
the <literal>WHERE</> clause and any form of aggregation cannot
be used.
</para>
</para>
</refsect2>
</refsect2>
</refsect1>
</refsect1>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment