Create Table Like
Creates a new table with all of the same metadata of another table.
Description
Grammar Syntax
CREATE [TEMPORARY] [EXTERNAL] TABLE [IF NOT EXISTS] [db_name.]table_name
LIKE existing_table_or_view_name
[LOCATION hdfs_path];Simple case
Hive
CREATE TABLE `mytable`
LIKE mydataset.sourcetableSnowflake
CREATE TABLE `mytable`
LIKE mydataset.sourcetableKnown Issues
Related EWIs
Last updated
Was this helpful?