1.SQL语句的执行顺序
Oracle的执行顺序
MySQL的执行顺序
(1)在SQL语句中,无论是对单表查询还是对多表查询表计算笛卡尔积,产生的虚表
写的顺序:select ... from... where.... group by... having... order by.. limit [offset,]
(rows)
执行顺序:from... where...group by... having.... select ... order by... limit
原文:https://www.cnblogs.com/abcdjava/p/10989024.html