赞
踩
语法树
---------select语法树------------
[WITH CommonTableExpression (, CommonTableExpression)*]
SELECT [ALL | DISTINCT] select_expr, select_expr, ...
FROM table_reference
[WHERE where_condition]
[GROUP BY col_list]
[ORDER BY col_list]
[CLUSTER BY col_list
| [DISTRIBUTE BY col_list] [SORT BY col_list]
]
[LIMIT [offset,] rows];
示例数据:
示例:
select * from t_usa_covid19_p;
select county, cases, deaths from t_usa_covid19_p;
SET hive.support.quoted.identifiers = none; --反引号不在解释为其他含义,被解释为正则表达式
示例:
示例:
示例:
--多分区裁剪
select * from t_usa_covid19_p where count_date = "2021-01-28" and state ="California" and deaths > 1000;
示例:
HAVING和WHERE区别
示例:
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。