hive with as

来源:互联网 发布:misuo加密软件怎样 编辑:程序博客网 时间:2024/06/10 16:02

hive 可以用with as的方法把表加入内存,其他语句可以随时使用。

with q1 as (select * from src where key= ‘5’),

q2 as (select * from src s2 where key = ‘4’)

select * from q1 union all select * from q2;

1 0
原创粉丝点击