1、hive 不支持 join的on中用 or连接多个条件,但MySQL和presto支持
https://blog.csdn.net/qq_31382921/article/details/52095115
上面链接给出了hive中怎么用on or,即用union all 或者union来改写语句
2、hive目前,in、not in 是不支持子查询的,MySQL和presto支持
https://www.jianshu.com/p/4c1e0b426ed5
3、hive不支持limit
在hive中,不支持limit m-1,n的方式,只能用row_number() over(distribute by … sort by … ) rank where rank< (m+n+1) and rank > (m-1)实现。
Mysql中可以用limit m-1, n的限制语法;表中下标从0开始,从第m条记录开始取,一共取n条记录。
https://zhuanlan.zhihu.com/p/151737918
4、with as创建临时表
presto和MySQL支持with as 创建临时表,但hive不支持
presto 时间函数
https://blog.csdn.net/zhao_cong/article/details/116063854



