Skip to content

Commit 505d9be

Browse files
author
Neil Conway
committed
Update CREATE TABLE AS docs to reflect the fact that CREATE TABLE AS was
added to the SQL:2003 standard.
1 parent 6a84723 commit 505d9be

File tree

1 file changed

+29
-6
lines changed

1 file changed

+29
-6
lines changed

doc/src/sgml/ref/create_table_as.sgml

Lines changed: 29 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$PostgreSQL: pgsql/doc/src/sgml/ref/create_table_as.sgml,v 1.23 2004/08/24 00:06:51 neilc Exp $
2+
$PostgreSQL: pgsql/doc/src/sgml/ref/create_table_as.sgml,v 1.24 2004/09/23 03:43:57 neilc Exp $
33
PostgreSQL documentation
44
-->
55

@@ -166,11 +166,34 @@ CREATE [ [ GLOBAL | LOCAL ] { TEMPORARY | TEMP } ] TABLE <replaceable>table_name
166166
<title>Compatibility</title>
167167

168168
<para>
169-
This command is modeled after an <productname>Oracle</productname>
170-
feature. There is no command with equivalent functionality in
171-
the SQL standard. However, a combination of <literal>CREATE
172-
TABLE</literal> and <literal>INSERT ... SELECT</literal> can
173-
accomplish the same thing with little more effort.
169+
<command>CREATE TABLE AS</command> is specified by the SQL2003
170+
standard. There are some small differences between the definition
171+
of the command in SQL2003 and its implementation in
172+
<productname>PostgreSQL</>:
173+
174+
<itemizedlist spacing="compact">
175+
<listitem>
176+
<para>
177+
The standard requires parentheses around the subquery clause; in
178+
<productname>PostgreSQL</productname>, these parentheses are
179+
optional.
180+
</para>
181+
</listitem>
182+
183+
<listitem>
184+
<para>
185+
The standard defines an <literal>ON COMMIT</literal> clause;
186+
this is not currently implemented by <productname>PostgreSQL</>.
187+
</para>
188+
</listitem>
189+
190+
<listitem>
191+
<para>
192+
The standard defines a <literal>WITH DATA</literal> clause;
193+
this is not currently implemented by <productname>PostgreSQL</>.
194+
</para>
195+
</listitem>
196+
</itemizedlist>
174197
</para>
175198
</refsect1>
176199

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy