![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
oracle函数
X ls。
这个作者很懒,什么都没留下…
展开
-
Oracle分组排序row_number()
Oracle函数 row_number() over(partition by) t.name 是需要分组的列 t.lastdate是用于排序的列 select t.*, row_number() over(partition by t.name order by t.lastdate) row_number from t原创 2021-05-07 17:55:13 · 233 阅读 · 0 评论 -
Oracle 行转列
Oracle 列转行 1.listagg() WITHIN GROUP () 示例数据图 将taskid相同的entname在一行显示 代码如下(: SELECT taskid, listagg(d.ENTNAME, ',') WITHIN GROUP(ORDER BY d .LASTDATE) names FROM test_entinfo d group by d.taskid原创 2021-01-13 11:48:06 · 660 阅读 · 2 评论