SQL
yuehuange
这个作者很懒,什么都没留下…
展开
-
Impala中常用时间函数
1 时间格式转换: 2018-01-03 转化为 20180103; select regexp_replace(substr(effc_start_dt,1,10),'-','') from tmp_lj_shenpi_shaixuan_0102 limit 5; 2 datediff函数使用: 注意:datediff()函数只能用于 2018-01-03 00:00:00格式时...原创 2018-01-09 14:24:34 · 16685 阅读 · 0 评论 -
impala row_id用法
row_id用法: select a.* from (select union_id,contra_no,row_number() over(partition by union_id order by create_tm desc) as row_id from table where contra_no like'14%' and end_date='47121231')a where...原创 2018-01-09 14:39:12 · 3823 阅读 · 0 评论