分享到: ------解决方案-------------------- MYSQL 里有一个LOCATE 函数 ------解决方案-------------------- select * from t1 where find_in_set(name,$str) ------解决方案--------------------
SELECT * FROM t1 WHERE $str LIKE CONCAT('%',name,'%');
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn