DB
[Oracle] 오라클 문자열 잘라내기
kjun.kr
2020. 5. 4. 22:21
728x90
728x170
select trim(regexp_substr('a,b,c','[^,]+',1,LEVEL)) item_id,
trim(regexp_substr('1,2,3','[^,]+',1,LEVEL)) item_value
from dual
connect by level < 4
결과>
item_id |
item_value |
a |
1 |
b |
2 |
c |
3 |
728x90
그리드형