标题:SQL性能求教
只看楼主
心动音符
Rank: 1
等 级:禁止访问
威 望:1
帖 子:832
专家分:0
注 册:2005-9-15
 问题点数:0 回复次数:1 
SQL性能求教
写法一:
create table A as
select * from B
;
Create table C as
select a.*,d.*
from D as d
left join A as a on (a.id = d.id)
;
写法二:
Create table C as
select a.*,d.*
from D as d
left join (select * from B) as a
on (a.id = d.id)
;

这两种写法哪种比较快
搜索更多相关主题的帖子: SQL table select 性能 
2007-12-09 20:47
ILoveMK
Rank: 3Rank: 3
等 级:新手上路
威 望:6
帖 子:487
专家分:0
注 册:2007-2-12
得分:0 
第二种快点。

天下归心
2007-12-10 13:28



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-191414-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.238248 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved