regexp, regexp_extract
1、 regexp 案例1: SELECT regexp('aa这ZZ你好11二位努力五零&&&&&','^[A-Za-z0-9\u4e00-\u9fa5]'); 结果: true 解释: 匹配 非英...
Snipe-IT资产管理系统部署
Snipe-IT是一个开源的资产管理系统,可以更好的帮助您管理IT设备官方网站:https://snipeitapp.com官方文档:https://snipe-it.readme.io/docs代码仓库:https://github.co...
HIve SQL 优化
一. Hive SQL执行顺序1.from 2.join on 或 lateral view explode(需炸裂的列) tbl as 炸裂后的列名 3.where 4.group by (开始使用select中的别名,...
判断日期是星期几
from_unixtime(cast(b.publicdate as bigint),’yyyy’) = year(date_sub(to_date(concat(year(current_date()),’-‘,lpad(ceil(mo...
时间差
–日期差–转换成时间戳相减,得到相差的秒数,在转换成分钟、小时(unix_timestamp(updatedate) - unix_timestamp(createdate))/3600 as time_diff – date——form...