DQL语法:
正常情况下我们写SQL语句的顺序:select xxx from xxx where xxx group by xxx having xxx order by xxx
但是SQL语句的执行顺序:from xxx where xxx group by xxx having xxx select xxx order by xxx
--DQL语法
select查询列表 --1
from 表1 别名 --2
连接类型 join 表2 --3
on 连接条件 --4
where 筛选 --5
group by 分组列表 --6
having 筛选 --7
order by 排序列表 --8
limit 起始条目索引,条目数; --9
--实际执行顺序:2->3->4->5->6->7->1->8->9