随笔分类 - SQL
摘要:/* 匹配*/ -- like _单个字符 %任意字符+任意数量 true = 1 false = 0 [基于sql实现的接口] -- rlike 基于java正则实现的接口 --语法:A,B 匹配返回true,否则返回false,当A,B为null时,返回null --区别:like 通配符匹配的
阅读全文
摘要:官网链接 :https://cwiki.apache.org/confluence/display/Hive/Common+Table+Expression#app-switcher -- 格式 -- 查询中使用 with t1 as ( select 'vivo' as channel,'2021
阅读全文
摘要:--######## 脚本名称:dws_fin_method_result_cps_loan_method_dd --######## 脚本中文名: --######## 脚本简介: --######## 作 者: gaocun_dxm@duxiaoman.com --######## 创建日期:
阅读全文
摘要:官网链接 : https://cwiki.apache.org/confluence/display/Hive/Enhanced+Aggregation%2C+Cube%2C+Grouping+and+Rollup 案例链接 : https://blog.csdn.net/qq_29232943/a
阅读全文
摘要:with t1 as ( select 'huawei' as channel ,'2021-08-01' as credit_date,5 as score union all select 'huawei' as channel ,'2021-08-03' as credit_date,12 a
阅读全文
摘要:-- 获取毫秒值 /*unix_timestamp([date[, pattern]]) 参数: date 字符串日期 pattern date的格式 默认格式(yyyy-MM-dd HH:mm:ss) 当参数为空时,获取的是当前时间 作用: 将当前或指定的时间转换为1970-01-01以来的秒数
阅读全文