题解 | #查找字符串中逗号出现的次数#
查找字符串中逗号出现的次数
https://www.nowcoder.com/practice/e3870bd5d6744109a902db43c105bd50
select id, length(string)-length (replace(string,',','')) cnt from strings
空格也算一个字符数
查找字符串中逗号出现的次数
https://www.nowcoder.com/practice/e3870bd5d6744109a902db43c105bd50
select id, length(string)-length (replace(string,',','')) cnt from strings
空格也算一个字符数
相关推荐