CREATE TABLE COPY
Grammar syntax
CREATE [ OR REPLACE ] TABLE [ IF NOT EXISTS ] table_name
COPY source_table_name
...
[OPTIONS(table_option_list)]
Sample Source Patterns
General case
CREATE TABLE CLONE in Snowflake is functionally equivalent to CREATE TABLE COPY.
Input Code
CREATE TABLE newtable
COPY sourceTable;
Output Code:
CREATE TABLE newtable CLONE sourceTable;
Note
The LABELS option in CREATE TABLE COPY statements are not transformed into TAGs because the TAGs of the source table are copied, they cannot be changed during the copy of the table.
Transformation of other table options are the same as specified for the CREATE TABLE statement.
Last updated