CREATE TABLE COPY
Creates a table that has the same metadata and data as another table. The source table can be a table, a table clone, or a table snapshot.
Grammar Syntax
CREATE [ OR REPLACE ] TABLE [ IF NOT EXISTS ] table_name COPY source_table_name ... [OPTIONS(table_option_list)]
Sample InputCode
CREATE TABLE newtable
COPY sourceTable;Snowflake OutputCode
CREATE TABLE newtable CLONE sourceTable;Sample InputCode
CREATE TABLE `table_copy`
COPY `table1`
OPTIONS (
labels=[("org_unit", "development")],
description="table copy from table1",
expiration_timestamp=TIMESTAMP "2025-01-01 00:00:00 UTC"
);Snowflake OutputCode
Note
Related EWIs
Last updated
Was this helpful?