Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 92f7eeb

Browse files
committed
Document that WITH queries are also called Common Table Expressions.
Peter Geoghegan, reviewed by Stephen Frost
1 parent 357faea commit 92f7eeb

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

doc/src/sgml/acronyms.sgml

+9
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,15 @@
9898
</listitem>
9999
</varlistentry>
100100

101+
<varlistentry>
102+
<term><acronym>CTE</acronym></term>
103+
<listitem>
104+
<para>
105+
<link linkend="queries-with">Common Table Expression</link>
106+
</para>
107+
</listitem>
108+
</varlistentry>
109+
101110
<varlistentry>
102111
<term><acronym>CVE</acronym></term>
103112
<listitem>

doc/src/sgml/queries.sgml

+3-2
Original file line numberDiff line numberDiff line change
@@ -1525,7 +1525,7 @@ SELECT <replaceable>select_list</replaceable> FROM <replaceable>table_expression
15251525

15261526

15271527
<sect1 id="queries-with">
1528-
<title><literal>WITH</literal> Queries</title>
1528+
<title><literal>WITH</literal> Queries (Common Table Expressions)</title>
15291529

15301530
<indexterm zone="queries-with">
15311531
<primary>WITH</primary>
@@ -1539,7 +1539,8 @@ SELECT <replaceable>select_list</replaceable> FROM <replaceable>table_expression
15391539

15401540
<para>
15411541
<literal>WITH</> provides a way to write subqueries for use in a larger
1542-
query. The subqueries can be thought of as defining
1542+
query. The subqueries, which are often referred to as Common Table
1543+
Expressions or <acronym>CTE</acronym>s, can be thought of as defining
15431544
temporary tables that exist just for this query. One use of this feature
15441545
is to break down complicated queries into simpler parts. An example is:
15451546

0 commit comments

Comments
 (0)