sql server查找某个字段中,某个字符出现的次数

229 阅读1分钟

DECLARE @text VARCHAR(max) = 'asdsadsad、大丰富的、sdfasdfdsafds、的'; SELECT len (@text) -len(replace(@text,'、',space(0)));