查询sql字符串中包含某字符的个数

1.

select length('ab,c,d,efg')-length(replace('ab,c,d,efg',',',''))from dual;


2.

select lengthb(regexp_replace('ab,c,d,efg','[^,]',null)) from dual;

你可能感兴趣的:([分类11]oracle)