说实话,已经不想写每日一题的博客了 mysql 将逗号用replace函数替换为空,将前后字符串的长度相减,就可以得到逗号的个数 replace(str,old_str,new_str)
replace(str,old_str,new_str)