1
thankyourtender OP MySQL里面是可以的
|
2
crazybubble 2014-10-14 10:34:33 +08:00
https://cwiki.apache.org/confluence/display/Hive/LanguageManual+SubQueries
https://cwiki.apache.org/confluence/display/Hive/LanguageManual+Union 看上去是可以的阿,是不是你的union all那块写错了?或者unionResult那里写错了?还有版本也是个坑,看看你用的版本对这两个操作有哪些限制不 |
3
thankyourtender OP In Hive 0.12.0 and earlier releases, unions can only be used within a subquery such as "SELECT * FROM (select_statement UNION ALL select_statement UNION ALL ...) unionResult".
看到了,有限制 |