热线电话:13121318867

登录
2019-06-27 阅读量: 1435
Hive中追加导入数据的4种方式是什么?请写出简要语法

Hive中追加导入数据的4种方式是什么?请写出简要语法

答:

1、从本地导入: load data local inpath ‘/home/1.txt’ (overwrite)into table student;

2、从Hdfs导入: load data inpath ‘/user/hive/warehouse/1.txt’ (overwrite)into table student;

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

4、查询结果导入:insert (overwrite)into table staff select * from track_log;

0.0000
3
关注作者
收藏
评论(0)

发表评论

暂无数据
推荐帖子