row format delimited fields terminated by '\t' 创建表时以\t 作为分隔符
location '/student'创建表时设置表的路径
insert overwrite local directory
'/opt/module/hive/data/export/student'[ROW FORMAT DELIMITED FIELDS TERMINATED BY '\t']
select * from student;查询结果导出到本地
alter table student2 set tblproperties('EXTERNAL'='TRUE');修改student2 表为外部表
desc formatted student2;查看表结构
create table student2 as select * from student where name = 'zhoayi' 创建一个和student结构一样且name属性为‘zhaoyi’的表