日期:2014-05-16 浏览次数:21585 次
with t1 as ( select 1 c1,'abc,def,mns,opq' c2 from dual ) select distinct c1,replace(regexp_substr(c2,'[^,]+',1,level),',',' ') c2 from t1 connect by level<=length(c2)-length(replace(c2,',',''))+1 order by c1 c1 c2 ------------------- 1 1 abc 2 1 def 3 1 mns 4 1 opq