把字符串按照分割符分解成不同的部分
来源:懂视网
责编:小采
时间:2020-11-09 15:02:08
把字符串按照分割符分解成不同的部分
把字符串按照分割符分解成不同的部分:select regexp_substr('A,B,C,D,E', '[^,]', 1, level, 'i') as str from dual connect by level = length('A,B,C,D,E') - length(regexp_replace('A,B,C,D,E', ',', '')) 1; select regexp_substr('A,B,C,D,E', '[^,]+', 1, level, 'i') as str from du
导读把字符串按照分割符分解成不同的部分:select regexp_substr('A,B,C,D,E', '[^,]', 1, level, 'i') as str from dual connect by level = length('A,B,C,D,E') - length(regexp_replace('A,B,C,D,E', ',', '')) 1; select regexp_substr('A,B,C,D,E', '[^,]+', 1, level, 'i') as str from du
select regexp_substr('A,B,C,D,E', '[^,]', 1, level, 'i') as str from dual connect by level = length('A,B,C,D,E') - length(regexp_replace('A,B,C,D,E', ',', '')) 1;
select regexp_substr('A,B,C,D,E', '[^,]+', 1, level, 'i') as str
from dual
connect by level <=
length('A,B,C,D,E') - length(regexp_replace('A,B,C,D,E', ',', '')) + 1;
声明:本网页内容旨在传播知识,若有侵权等问题请及时与本网联系,我们将在第一时间删除处理。TEL:177 7030 7066 E-MAIL:11247931@qq.com
把字符串按照分割符分解成不同的部分
把字符串按照分割符分解成不同的部分:select regexp_substr('A,B,C,D,E', '[^,]', 1, level, 'i') as str from dual connect by level = length('A,B,C,D,E') - length(regexp_replace('A,B,C,D,E', ',', '')) 1; select regexp_substr('A,B,C,D,E', '[^,]+', 1, level, 'i') as str from du