【hive】Hive中追加导入数据的4种方式

Hive中追加导入数据的4种方式

从本地导入:
load data local inpath '/home/st.txt' (overwrite) into table student;

从Hdfs导入:
load data inpath '/user/hive/warehouse/st.txt' (overwrite) into table student;

查询导入:
create table student_a as select * from student;(也可以具体查询某项数据)

查询结果导入:
insert (overwrite)into table student select * from student_a;

 

你可能感兴趣的:(大数据)