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

Sql 语句中的执行顺序

时间:2015-02-03 14:39:11      阅读:131      评论:0      收藏:0      [点我收藏+]

标签:

(8)SELECT (9)DISTINCT (11)<Top Num> <select list>
(1)FROM [left_table]
(3)<join_type> JOIN <right_table>
(2) ON <join_condition>
(4)WHERE <where_condition>
(5)GROUP BY <group_by_list>
(6)WITH <CUBE | RollUP>
(7)HAVING <having_condition>
(10)ORDER BY <order_by_list>

Sql 语句中的执行顺序

标签:

原文地址:http://www.cnblogs.com/YyuTtian/p/4269764.html

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