menu 我的书签 MySQL SQL语法顺序和执行顺序
文章开始
文章结尾


语法顺序

SELECT[DISTINCT]
FROM
WHERE
GROUP BY
HAVING
UNION
ORDER BY

执行顺序

FROM
WHERE
GROUP BY
HAVING
SELECT
DISTINCT
UNION
ORDER BY