LOCATE('substr',str,pos)方法
SELECT LOCATE('xbar',`foobar`);
###返回0 SELECT LOCATE('bar',`foobarbar`);
###返回4 SELECT LOCATE('bar',`foobarbar`,);
###返回7
SELECT `column` FROM `table` WHERE LOCATE('keyword', `field`)>0 源文:https://www.cnblogs.com/mqxs/p/9703000.html