SELECT REGEXP_SUBSTR('11,22,33', '[^,]+', 1, LEVEL, 'i') AS STR
FROM DUAL
CONNECT BY LEVEL <=
FROM DUAL
CONNECT BY LEVEL <=
LENGTH('11,22,33') - LENGTH(REGEXP_REPLACE('11,22,33', ',', '')) + 1
结果:
11
22
33
可以用于in条件
LENGTH('11,22,33') - LENGTH(REGEXP_REPLACE('11,22,33', ',', '')) + 1
结果:
11
22
33
可以用于in条件