查看原文 locate(string,str,pos) select * from test where locate('test',str,1); string在str出现的位置从pos开始 类似php中strpos函数