日期:2014-05-17 浏览次数:20719 次
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
*/