Commit 505d9be3 authored by Neil Conway's avatar Neil Conway

Update CREATE TABLE AS docs to reflect the fact that CREATE TABLE AS was

added to the SQL:2003 standard.
parent 6a84723d
<!-- <!--
$PostgreSQL: pgsql/doc/src/sgml/ref/create_table_as.sgml,v 1.23 2004/08/24 00:06:51 neilc Exp $ $PostgreSQL: pgsql/doc/src/sgml/ref/create_table_as.sgml,v 1.24 2004/09/23 03:43:57 neilc Exp $
PostgreSQL documentation PostgreSQL documentation
--> -->
...@@ -166,11 +166,34 @@ CREATE [ [ GLOBAL | LOCAL ] { TEMPORARY | TEMP } ] TABLE <replaceable>table_name ...@@ -166,11 +166,34 @@ CREATE [ [ GLOBAL | LOCAL ] { TEMPORARY | TEMP } ] TABLE <replaceable>table_name
<title>Compatibility</title> <title>Compatibility</title>
<para> <para>
This command is modeled after an <productname>Oracle</productname> <command>CREATE TABLE AS</command> is specified by the SQL2003
feature. There is no command with equivalent functionality in standard. There are some small differences between the definition
the SQL standard. However, a combination of <literal>CREATE of the command in SQL2003 and its implementation in
TABLE</literal> and <literal>INSERT ... SELECT</literal> can <productname>PostgreSQL</>:
accomplish the same thing with little more effort.
<itemizedlist spacing="compact">
<listitem>
<para>
The standard requires parentheses around the subquery clause; in
<productname>PostgreSQL</productname>, these parentheses are
optional.
</para>
</listitem>
<listitem>
<para>
The standard defines an <literal>ON COMMIT</literal> clause;
this is not currently implemented by <productname>PostgreSQL</>.
</para>
</listitem>
<listitem>
<para>
The standard defines a <literal>WITH DATA</literal> clause;
this is not currently implemented by <productname>PostgreSQL</>.
</para>
</listitem>
</itemizedlist>
</para> </para>
</refsect1> </refsect1>
......
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