select
字段列表
from
表名列表
where
条件列表
group by
分组字段
having
分组之后的条件
order by
排序
limit
分页限定
between语句在...之间
条件查询
where子句后条件
between...and
in 查询某几个
is null或is not null判断空
and、or、not
like模糊查询
占位符
_:单个字符
%:多个任意字符
select
字段列表
from
表名列表
where
条件列表
group by
分组字段
having
分组之后的条件
order by
排序
limit
分页限定
between语句在...之间
条件查询
where子句后条件
between...and
in 查询某几个
is null或is not null判断空
and、or、not
like模糊查询
占位符
_:单个字符
%:多个任意字符