题解 | #查找字符串中逗号出现的次数#
查找字符串中逗号出现的次数
https://www.nowcoder.com/practice/e3870bd5d6744109a902db43c105bd50
SELECT id,(LENGTH(string) - LENGTH(REPLACE(string, ',', ''))) AS length FROM strings;
查找字符串中逗号出现的次数
https://www.nowcoder.com/practice/e3870bd5d6744109a902db43c105bd50
SELECT id,(LENGTH(string) - LENGTH(REPLACE(string, ',', ''))) AS length FROM strings;
相关推荐