美文网首页
[Hive]Hive使用union all报错missing E

[Hive]Hive使用union all报错missing E

作者: 一只疯兔的迭代记录 | 来源:发表于2019-11-27 14:53 被阅读0次

1.union all 的每张表都要用简称命名,否则报错。

一天天的净跟这些蠢坑周旋……

2、union all的每张表都不支持limit、order by等函数,否则报错。

解决方案:外面套一层,再union all即可。

语法:

select * from 

     (select * from xx)a

union all 

select * from

    (select * from xx)b

相关文章

网友评论

      本文标题:[Hive]Hive使用union all报错missing E

      本文链接:https://www.haomeiwen.com/subject/cpppwctx.html