create table as select from and insert into select from usage

Creative Commons License Creative Commons

Copy table (containing data): create table table_name2 as select * from table_name1

Copy table (without data): create table table_name2 as select * from table_name1 where 1 = 2

Just copy the data table: insert into table_name2 select * from table_name1

Guess you like

Origin blog.csdn.net/ssxueyi/article/details/91884687