- 1999-07-20
+ 2001-03-03
-CREATE TABLE table [ (column [, ...] ) ]
+CREATE [ TEMPORARY | TEMP ] TABLE table [ (column [, ...] ) ]
AS select_clause
+
+ TEMPORARY or TEMP
+
+ If specified, the table is created only for this session, and is
+ automatically dropped on session exit.
+ Existing permanent tables with the same name are not visible
+ (in this session) while the temporary table exists.
+ Any indexes created on a temporary table are automatically
+ temporary as well.
+
+
+
+
table
The name of a column. Multiple column names can be specified using
- a comma-delimited list of column names.
+ a comma-delimited list of column names. If column names are not
+ provided, they are taken from the output column names of the
+ SELECT query.
CREATE TABLE AS enables a table to be created
from the contents of an existing table.
- It is functionality equivalent to
+ It is functionally equivalent to
,
but with perhaps a more direct syntax.