![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
oracle-function
文章平均质量分 63
iteyer
所有的规矩,所有的原则,所有的理论,所有的计划,所有的一切都是为了更好的做事,而不是约束我们,约束不是为了约束而约束,约束也是为了更好的做事
展开
-
oracle-function-wm_concat
转自:http://database.51cto.com/art/201010/231126.htm 表结构: create table SHOPPING ( u_id NUMBER, goods VARCHAR2(30), num NUMBER(10,2) ) 原数据: select * from shopping; 1 苹果 2.00 2转载 2015-10-18 21:47:29 · 330 阅读 · 0 评论 -
oracle-function-lag-lead
lag与lead函数是跟偏移量相关的两个分析函数,通过这两个函数我们可以取到当前行列的偏移N行列的值 lag可以看着是正的向上的偏移 lead可以认为负的向下的偏移 具体我们来看几个例子: 我们先看下scott的emp表的两列数据: select deptno, sal from scott.emp order by deptno DEPTNO SAL 10 2450.00转载 2015-10-20 06:20:13 · 383 阅读 · 0 评论 -
ORACLE-FUNCTION-SYS_CONNECT_BY_PATH
表结构: create table test_connect_by (child number,parent number); 原表数据: CHILD PARENT 2 5 3 5 10 15 5 15 9 17 8 17 15 38 17 38 6 38 13 26 1 26 12 26原创 2015-10-18 22:30:00 · 386 阅读 · 0 评论