SQL 语句的执行顺序

--1.from
--2.on
--3.outer(join)
--4.where
--5.group by
--6.cube|rollup
--7.having
--8.select
--9.distinct
--10.order by
--11.top

原文地址:https://www.cnblogs.com/yougmi/p/4171862.html