查询字符串某个字符的个数

select len('05011045')-len(replace('05011045','0',''))

原文地址:https://www.cnblogs.com/zwc-blog/p/3787888.html