摘要:
Listaggselect * from empselect LISTAGG(ename,'-') within group (order by deptno desc) from emp;可以看到功能类似wm_concat,可以自定义连接符,区别: LISTAGG : 11g2才提供的函数,不支持... 阅读全文
posted @ 2015-07-13 15:48
mellowsmile
阅读(1281)
评论(0)
推荐(0)
摘要:
多行转字符串 这个比较简单,用||或concat函数可以实现 SQL Code 12selectconcat(id,username)strfromapp_userselectid||usernamestrfromapp_user字符串转多列 实际上就是拆分字符串的问题,可以使用 substr、instr、regexp_substr函数方式 字符串转多... 阅读全文
posted @ 2015-07-13 10:54
mellowsmile
阅读(291171)
评论(9)
推荐(11)

浙公网安备 33010602011771号