通配符 用来匹配值的一部分的特殊字符
% 表示任何字符(包括没有字符)出现的任意次数
select prod_id,prod_price,prod_name from products where prod_name like 'jet%';
可以设置Mysql区分大小写,如果区分大小写的话,jet%与JetPack 1000不匹配

select prod_id,prod_price,prod_name from products where prod_name like '%anvil%';
可以使用多个通配符

'_'通配符 用途和%差不多,但是只匹配单个字符
select prod_id,prod_price,prod_name from products where prod_name like '_ ton anvil';

select prod_id,prod_price,prod_name from products where prod_name like '% ton anvil';
%与_的区别:

网友评论