hive 语法

多插入模式

from (select * from ftbappsession1020 where hour='2016072011') t

insert into table_a partition(hour=2016072011,imsi) select vcMsisdn,vcImsi,vcImei,vcUrl,imsi where vcUrl<>''

insert into table_b partition(hour=2016072011) select 2016072011,vcImsi,vcImei,count(1) group by vcImsi,vcImei;

你可能感兴趣的:(hive 语法)