mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-03-07 19:47:50 +08:00
Document that WITH queries are also called Common Table Expressions.
Peter Geoghegan, reviewed by Stephen Frost
This commit is contained in:
parent
d8b0495f96
commit
ba3afc88d2
@ -98,6 +98,15 @@
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><acronym>CTE</acronym></term>
|
||||
<listitem>
|
||||
<para>
|
||||
<link linkend="queries-with">Common Table Expression</link>
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><acronym>CVE</acronym></term>
|
||||
<listitem>
|
||||
|
@ -1516,7 +1516,7 @@ SELECT <replaceable>select_list</replaceable> FROM <replaceable>table_expression
|
||||
|
||||
|
||||
<sect1 id="queries-with">
|
||||
<title><literal>WITH</literal> Queries</title>
|
||||
<title><literal>WITH</literal> Queries (Common Table Expressions)</title>
|
||||
|
||||
<indexterm zone="queries-with">
|
||||
<primary>WITH</primary>
|
||||
@ -1530,7 +1530,8 @@ SELECT <replaceable>select_list</replaceable> FROM <replaceable>table_expression
|
||||
|
||||
<para>
|
||||
<literal>WITH</> provides a way to write subqueries for use in a larger
|
||||
<literal>SELECT</> query. The subqueries can be thought of as defining
|
||||
<literal>SELECT</> query. The subqueries, which are often referred to as Common Table
|
||||
Expressions or <acronym>CTE</acronym>s, can be thought of as defining
|
||||
temporary tables that exist just for this query. One use of this feature
|
||||
is to break down complicated queries into simpler parts. An example is:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user