Home >Backend Development >PHP Tutorial > mysql查询有关问题,like的反向使用

mysql查询有关问题,like的反向使用

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-13 12:46:111021browse

mysql查询问题,like的反向使用?
有没有这样的语句

比如

$str = "你好,今天你吃饭了吗?包子还是油饼啊?包子里边还有点维生素比油饼好";

数据库表t1里存的是 
id name
1  维生素
2  吃饭
3  运动
4  娱乐

用什么语句能匹配到用$str从t1中取到 维生素 和 吃饭 ?

mysql like
Statement:
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