Home  >  Article  >  Database  >  SQL 必知必会笔记4使用通配符过滤数据

SQL 必知必会笔记4使用通配符过滤数据

WBOY
WBOYOriginal
2016-06-07 17:40:46865browse

LIKE操作符 通配符(wildcard): 用来匹配值的一部分的特殊字符。 百分号(%)通配符 最常使用的通配符是百分号(%)。在搜索串中,%表示任何字符出现任意次数: SELECT prod_id, prod_name FROM Products ;

LIKE操作符

通配符(wildcard):

用来匹配值的一部分的特殊字符。

百分号(%)通配符

最常使用的通配符是百分号(%)。在搜索串中,虚拟主机,香港服务器,%表示任何字符出现任意次数:

SELECT prod_id, prod_name FROM Products ; ,香港空间

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