从一个表中,写多种查询逻辑,并将结果输出到多个不同表(分区)
语法:
from t_x
insert into t_dest partition(p=’p1’)
select …… where …….
insert into t_dest partition(p=’p2’)
select …… where …….
hive多重插入语法
最新推荐文章于 2022-11-29 16:28:57 发布
从一个表中,写多种查询逻辑,并将结果输出到多个不同表(分区)
语法:
from t_x
insert into t_dest partition(p=’p1’)
select …… where …….
insert into t_dest partition(p=’p2’)
select …… where …….