比如含水量的值为1,2,4,5,6共5个值(值在一个单元格用,隔开的),用count该如何统计
count(split("t1.WATER",",")) AS qysl
count(split("1,2,4,5,6",","))
oracel里面写法
select
t.mynum,
length(t.mynum)-length(replace(t.mynum,',',''))+1 as 个数
from (
select '1,2,4,5,6' as mynum from dual
) t
count(split(A1,","))
count(split(单元格,","))