模糊查询(like)
1. 找出名中包含 “厂”的所有供应商的名
select * from provider where pro_name like '%厂%'
2.第二个字为华
select * from provider where pro_name like '_华%'
通配符
%:代表任何字符
_:任何单个字符
[a-z]:范围内的单个字符、匹配不区分大小写
[^0-9]:不在范围内
本意
select * from employee where id like 'd%%' escape 'd'
select * from employee where id like 'd_%' escape 'd'