概括:
字段里面包含了不定数量重复的字符串,想查询包含N个字符的记录
select id,name from table where
((length(name )-length(replace(name ,‘abc8’,’’)))/4)>5
上面的4就是字符串的长度,5就是包含字符串
概括:
字段里面包含了不定数量重复的字符串,想查询包含N个字符的记录
select id,name from table where
((length(name )-length(replace(name ,‘abc8’,’’)))/4)>5
上面的4就是字符串的长度,5就是包含字符串