SELECT [ ALL | DISTINCT ] expression [ AS name ] [, ...] INTO [ TABLE ] new_table ] [ FROM table [alias] [, ...] ] [ WHERE condition ] [ GROUP BY column [, ...] ] [ HAVING condition [, ...] ] [ UNION [ ALL ] select] [ ORDER BY column [ ASC | DESC ] [, ...] ]
All input fields are described in detail for SELECT.
All output fields are described in detail for SELECT.
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.
Note: CREATE TABLE AS is functionally equivalent to the SELECT INTO command.
If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.