oracle
lp_10k
这个作者很懒,什么都没留下…
展开
-
oracle 合并有共同点的多行数据为一行
1.listagg()函数使用方法如下listagg(合并列, ',')within group (order by null) OVER(PARTITION BY 相同列)具体列子select listagg(aath.app_task_code, ',')within group (order by aath.created_date desc) OVER(PARTITION BY aath.location_code) as "taskCode" from原创 2021-04-02 09:53:57 · 464 阅读 · 0 评论 -
Oracle生成随机数或唯一随机数
1.小数dbms_random.value(low,high): --获取一个[low,high)之间的小数,包含low,不包含high可以结合trunc函数获取整数例如:select dbms_random.value from dual; --生成0-1之间的小数select dbms_random.value(0,10) from dual; --生成0-10之间的小数select trunc(dbms_random.value(0,100)) from转载 2021-03-25 11:11:20 · 1755 阅读 · 0 评论 -
oracle利用cmd命令来进行数据的迁移
oracle利用cmd命令来进行数据的迁移https://blog.csdn.net/adminmanager1/article/details/105937372https://www.cnblogs.com/tytr/p/9056690.html转载 2021-01-20 17:39:06 · 123 阅读 · 0 评论