17,086
社区成员
发帖
与我相关
我的任务
分享
select id,regexp_substr(code,'[[:digit:]]+',1,1) code1,regexp_substr(code,'[[:digit:]]+',1,2) code2,regexp_substr(info,'[[:alpha:]]+',1,1) info1,regexp_substr(info,'[[:alpha:]]+',1,2) info2 from mytable
SELECT
SubStr('45,12',1,InStr('45,12',',')-1)code1,
SubStr('45,12',InStr('45,12',',')+1,Length('45,12'))code2
FROM dual;
output:
CODE1 CODE2
45 12