Bruce Xiao 的程序生活

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2013年10月8日

摘要: select 语句的执行顺序借用ItZik Ben-Gan、Lubor Kollar、Dejan Sarka所著的《Sql Server 2005 技术内幕:T-SQL查询》的一段话足以说明:(8) select (9) distinct (11) (1)from(3) join (2) on (4) where (5)group by (6) with {cube|rollup}(7)having(having_condition)(10) order by 从这个顺序可以看出,所有的查询语句都是从from开始执行的。在执行过程中,每个步骤都会为下一个步骤生成一个虚拟表,这个虚拟表将作为.. 阅读全文
posted @ 2013-10-08 10:45 Bruce Xiao 阅读(370) 评论(0) 推荐(0) 编辑