码迷,mamicode.com
首页 > 数据库 > 详细

SQL 执行顺序

时间:2015-06-02 16:46:11      阅读:131      评论:0      收藏:0      [点我收藏+]

标签:

1 SELECT (9) DISTINCT (11) <TOP_specification> <select_list> 

2 (1) FROM <left_table>  

3 (3) <join_type> JOIN <right_table> 

4 (2) ON <join_condition> 

5 (4) WHERE <where_condition> 

6 (5) GROUP BY <group_by_list> 

7 (6) WITH {CUBE | ROLLUP} 

8 (7) HAVING <having_condition> 

9 (10) ORDER BY <order_by_list>

SQL 执行顺序

标签:

原文地址:http://www.cnblogs.com/Elsie/p/4546443.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!