例如: 字符串 '05011045'要查 0 在此字符串里有几个! select len('05011045')-len(replace('05011045','0','')) 转载于:https://www.cnblogs.com/zhangs1986/p/4078347.html