oracle REGEXP_SUBSTR函数

SELECT REGEXP_SUBSTR('first field, second field , third field',
'[^,]+',
1,
ROWNUM)
FROM DUAL
CONNECT BY ROWNUM <= LENGTH('first field, second field , third field') -
LENGTH(REPLACE('first field, second field , third field',
',',
'')) + 1;

posted @ 2015-09-14 17:05  jlx351312  阅读(196)  评论(0编辑  收藏  举报