SELECT INTO
SQL - Language Statements
SELECT INTO
Create a new table from an existing table or view
1999-07-20
SELECT [ ALL | DISTINCT [ ON ( expression [, ...] ) ] ]
expression [ AS name ] [, ...]
[ INTO [ TEMPORARY | TEMP ] [ TABLE ] new_table ]
[ FROM table [ alias ] [, ...] ]
[ WHERE condition ]
[ GROUP BY column [, ...] ]
[ HAVING condition [, ...] ]
[ { UNION [ ALL ] | INTERSECT | EXCEPT } select ]
[ ORDER BY column [ ASC | DESC | USING operator ] [, ...] ]
[ FOR UPDATE [ OF class_name [, ...] ] ]
[ LIMIT { count | ALL } [ { OFFSET | , } start ] ]
1998-09-22
Inputs
All input fields are described in detail for
.
1998-09-22
Outputs
All output fields are described in detail for
.
1998-09-22
Description
SELECT INTO creates a new table from the results
of a query. Typically, this
query draws data from an existing table, but any SQL query is allowed.
is functionally equivalent to the SELECT INTO command.