SELECT * 
FROM usual_patrol_plan 
WHERE LOCATE('6', config_id) > 0

6为需要查询的字符,config_id为需要查询的字段