Skip to content

Latest commit

 

History

History
47 lines (29 loc) · 940 Bytes

create-table-as.rst

File metadata and controls

47 lines (29 loc) · 940 Bytes

CREATE TABLE AS

Define a new table from existing tables.

Table of contents

CREATE TABLE table_ident AS { ( query ) | query }

CREATE TABLE AS will create a new table and insert rows based on the specified query.

Only the column names, types, and the output rows will be used from the query. Default values will be assigned to the optional parameters used for the table creation.

For further details on the default values of the optional parameters, see :ref:`sql-create-table`.

table_ident:The name (optionally schema-qualified) of the table to be created.
query:A query (SELECT statement) that supplies the rows to be inserted. Refer to the SELECT statement for a description of the syntax.