一、导出到本地文件系统
insert overwrite local directory '/home/data/' row format delimited FIELDS TERMINATED BY '\t' COLLECTION ITEMS TERMINATED BY ',' MAP KEYS TERMINATED BY ':' select * from test;
二、导出到HDFS中
insert overwrite directory '/home/wyp/hdfs' select * from wyp;
三、导出到Hive的另一个表中
insert into table test partition (age='25') select id, name, tel from wyp;