Commit 92f7eebb authored by Robert Haas's avatar Robert Haas

Document that WITH queries are also called Common Table Expressions.

Peter Geoghegan, reviewed by Stephen Frost
parent 357faea8
...@@ -98,6 +98,15 @@ ...@@ -98,6 +98,15 @@
</listitem> </listitem>
</varlistentry> </varlistentry>
<varlistentry>
<term><acronym>CTE</acronym></term>
<listitem>
<para>
<link linkend="queries-with">Common Table Expression</link>
</para>
</listitem>
</varlistentry>
<varlistentry> <varlistentry>
<term><acronym>CVE</acronym></term> <term><acronym>CVE</acronym></term>
<listitem> <listitem>
......
...@@ -1525,7 +1525,7 @@ SELECT <replaceable>select_list</replaceable> FROM <replaceable>table_expression ...@@ -1525,7 +1525,7 @@ SELECT <replaceable>select_list</replaceable> FROM <replaceable>table_expression
<sect1 id="queries-with"> <sect1 id="queries-with">
<title><literal>WITH</literal> Queries</title> <title><literal>WITH</literal> Queries (Common Table Expressions)</title>
<indexterm zone="queries-with"> <indexterm zone="queries-with">
<primary>WITH</primary> <primary>WITH</primary>
...@@ -1539,7 +1539,8 @@ SELECT <replaceable>select_list</replaceable> FROM <replaceable>table_expression ...@@ -1539,7 +1539,8 @@ SELECT <replaceable>select_list</replaceable> FROM <replaceable>table_expression
<para> <para>
<literal>WITH</> provides a way to write subqueries for use in a larger <literal>WITH</> provides a way to write subqueries for use in a larger
query. The subqueries can be thought of as defining 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 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: is to break down complicated queries into simpler parts. An example is:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment