[hive小技巧]同一份数据多种处理

其实就是from表时,可以插入到多个表。  

sql语句的模板如下:

from history

insert overwrite sales select * where actino='purchased' 

inesrt overwrite credits select * where action = 'returened';

原文地址:https://www.cnblogs.com/hark0623/p/5054707.html