模糊查询

格式:
select 字段名1,字段名2....
from 表名
where 字段名 like '匹配规则'

#需求:查询名字中带有e字母的员工姓名。
select first_name
from employees
where first_name like'%e%';//百分号表示任意字符

#需求:查询名字中第二个字符为e的员工姓名.
select first_name
from employees
where first_name like'_e%';//_表示一个字符为任意字符

需求:查询名字中第二个字符为_的员工姓名.
select first_name
from employees
where first_name like'_\_%';// \表示转义字符

#需求:查找员工的姓名中即包含a又包含e的员工姓名。
SELECT first_name 
FROM employees
#where first_name like '%a%' and first_name like '%e%';
WHERE first_name LIKE '%a%e%' OR first_name LIKE '%e%a%'