版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/GUANYAQI1996/article/details/78726030
1:load data (local) inpath '/...... ' overwrite into table student partition (date='2017');
2:create table teacher as select * from student;
3:create table teacher like student; insert into table teacher select * from student;
4:create table techer(id int,name string) ;insert into table teacher select * from student;