mysql 模糊查询实现

EXPLAIN SELECT * FROM `text` WHERE content like '%1%3%';
EXPLAIN SELECT * FROM `text` WHERE locate("1",content)>0 and locate("3",SUBSTRING(content,locate("1",content)))>0

都可以达到效果

posted on 2017-03-10 11:19  小乔流水人家  阅读(236)  评论(0)    收藏  举报

导航