oracle 分割按某个字符串分割函数
1、使用f_split_clob函数
select column_value from table(f_split_clob('a,b,c', ','));
2、使用regexp_substr函数及正则表达式,结合connect by语法
select distinct regexp_substr ('a,b,c','[^,]+',1,level) as ids from dual connect by regexp_substr ('a,b,c','[^,]+',1,level) is not null;