Sql语句的执行顺序:
1、FROM clause
2、ON
3、Join (left | right)
4、WHERE clause
5、SELECT clause
6、GROUP BY clause
7、HAVING clause
8、DISTINCT
9、ORDER BY clause
10、LIMIT
Sql语句的执行顺序:
1、FROM clause
2、ON
3、Join (left | right)
4、WHERE clause
5、SELECT clause
6、GROUP BY clause
7、HAVING clause
8、DISTINCT
9、ORDER BY clause
10、LIMIT