日期:2014-05-17 浏览次数:20795 次
select regexp_substr('123,234,234,456', '[^,]+'), regexp_substr('123,234,234,456', '[^,]+$') from dual;
------解决方案--------------------
select regexp_replace(regexp_substr('123,234,234,456 ','[^,,]*[,,]'),',|,','') A, regexp_replace(regexp_substr('123,234,234,456 ','[,,]+[^,,]*$'),',|,','') B from dual; /* A B --- --- 123 456 */