求类似wm_concat的功能 NameA,BABselect wmsys.wm_concat(name) name from table返回的结果是A,B,A,B有没有办法返回A,B 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 with tab as(select 'A,B' name from dual union allselect 'A' from dual union ALLselect 'B' from dual)select wm_concat(distinct regexp_substr(name,'[^,]+',1,level)) as namefrom tabconnect bylevel<=length(name)-length(replace(name,',',''))+1 据说低于三张表连接就用ON? oracle数据库中的函数必须有一个返回值么? Oracle10g忘记密码了,如何解决!! like '5101%' 和 substr(columns,1,4)=5101哪个效率高? oracle 分析函数rollup的效率问题 很简单 next_day函数小问题 关于ORACLE73个人版本地数据库别名的问题 关于基于Oracle的JSP开发时遇见的Session急剧增多问题 还有这个,C#与oracle?? 高分!! 请问学习Oracle有什么不错的书,推荐一下。 oracle 替换函数问题
with tab as(
select 'A,B' name from dual union all
select 'A' from dual union ALL
select 'B' from dual
)
select wm_concat(distinct regexp_substr(name,'[^,]+',1,level)) as name
from tab
connect by
level<=length(name)-length(replace(name,',',''))+1