当前位置:首页 > 其它

其它

  • 最新
  • 浏览
  • 评论

regexp, regexp_extract

刘月2年前 (2022-05-25)10666
1、 regexp 案例1: SELECT regexp('aa这ZZ你好11二位努力五零&&&&&','^[A-Za-z0-9\u4e00-\u9fa5]'); 结果: true 解释: 匹配 非英...

Snipe-IT资产管理系统部署

CarlZhou2年前 (2022-03-06)2148
Snipe-IT资产管理系统部署
Snipe-IT是一个开源的资产管理系统,可以更好的帮助您管理IT设备官方网站:https://snipeitapp.com官方文档:https://snipe-it.readme.io/docs代码仓库:https://github.co...

HIve SQL 优化

刘月3年前 (2021-04-19)895
一. Hive SQL执行顺序1.from 2.join on 或 lateral view explode(需炸裂的列) tbl as 炸裂后的列名 3.where 4.group by (开始使用select中的别名,...

判断日期是星期几

刘月3年前 (2021-02-02)959
from_unixtime(cast(b.publicdate as bigint),’yyyy’) = year(date_sub(to_date(concat(year(current_date()),’-‘,lpad(ceil(mo...

时间差

刘月3年前 (2021-01-28)988
–日期差–转换成时间戳相减,得到相差的秒数,在转换成分钟、小时(unix_timestamp(updatedate) - unix_timestamp(createdate))/3600 as time_diff – date——form...

常用日期函数

刘月3年前 (2021-01-26)921
– 常用 当天select CURRENT_DATE() 取昨天select date_sub(from_unixtime(unix_timestamp()),1)select date_sub(current_date(),1) 例...