Home >Database >Mysql Tutorial >MySQL通配符过滤_MySQL

MySQL通配符过滤_MySQL

WBOY
WBOYOriginal
2016-05-31 08:46:191021browse

在WHERE后使用LIKE操作符可以进行通配符过滤:

products表如下:

/

a 使用%通配符:

/

/

b 使用两个%通配符:

/

c 使用下划线_适配单个字符

n块エky编程经验的应该可以看出来,这种通配符搜索会进行多次比较,速度会相对比较慢,所以能用其他SQL语句实现的尽量使用其他语句。

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