- 查询语句的书写顺序
- select ===> from ===> where ===> group by ===> having ===> order by ===> limit
- 查询语句的执行顺序
- from ===> where ===> group by ===> having ===> select ===> order by ===> limit
- from ===> on ===>join ===>where ===> group by ===> 聚合===> having ===> select ===> distinct ===>order by ===> limit