![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
分析函数
洪武哥
欢迎评论,记得点赞
展开
-
取上一行的值
开窗函数应用取相对于本行上一行的值 取相对于本行上一行的值 代码块 with abc as (select '10000547'o_code,'2011-10-01'basdate,1 nums from dual union all select '10000547'o_code,'2012-10-01'basdate,2 nums from dual union all select '10...原创 2019-07-01 15:30:34 · 945 阅读 · 0 评论 -
统计特殊字符的个数
统计特殊字符个数1、regexp_count2、translate 1、regexp_count sql select regexp_count(d1,','),level from (select 'a,b,c,d,e,f' d1 from dual) connect by level<regexp_count(d1,',')+1 2、translate sql select lengt...原创 2019-07-02 11:27:12 · 720 阅读 · 0 评论