HiveQL 语句 优先级

1.FROM <left_table>
3.<join_type> JOIN <right_table> 2.ON <join_condition>
4.WHERE <where_condition>
5.GROUP BY <group_by_list>
6.WITH {cube|rollup}
7.HAVING <having_condition>
8.SELECT 9.DISTINCT 11.<top_specification> <select_list>
10.ORDER BY <order_by_list>

lateral view 优先级在select 之前 from 之后,且通常为 select * from (…)t lateral view …这样的结构

你可能感兴趣的:(Hive,mysql,sql,数据库)