select * from 表一 [join 表二
on 连接条件]
where 筛选条件
group by 分组字段
having 分组后的筛选条件
order by 排序的字段
limit [offset,]size

特点

limit是查询语句的最后,执行顺序也在最后面