Compatibility
- This command is modeled after an
Oracle
- feature. There is no command with equivalent functionality in
- the SQL standard. However, a combination of CREATE
- TABLE and INSERT ... SELECT can
- accomplish the same thing with little more effort.
+ CREATE TABLE AS is specified by the SQL2003
+ standard. There are some small differences between the definition
+ of the command in SQL2003 and its implementation in
+
+
+
+ The standard requires parentheses around the subquery clause; in
+
PostgreSQL, these parentheses are
+ optional.
+
+
+
+
+ The standard defines an ON COMMIT clause;
+ this is not currently implemented by
PostgreSQL>.
+
+
+
+
+ The standard defines a WITH DATA clause;
+ this is not currently implemented by
PostgreSQL>.
+
+
+