- 博客(2)
- 收藏
- 关注
原创 Oracle的listagg() 和row_number()的结合使用
1.查询员工表数据 select * from scott.emp 结果: 2.通过listadd()进行行转列 select t.deptno,listadd(t.ename,',') within group (order by t.sal desc) from scott.emp t group by t.deptno; 结果: 3.通过row_number()进行编号 select t.deptno,t.ename,t.sal,row_number() over(parti
2021-07-02 11:41:33
551
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人