SQL语句改进

效率低:
select a.a1 from table1 a where not exists (select a1 from talbe2 where a1=a.a1)

效率高:
select *  from table1  a left join table2 b on a.a1=b.a1  where b.a1 is null

posted on 2006-12-29 12:09 Tom 阅读(164) 评论(0)  编辑  收藏 所属分类: DB


只有注册用户登录后才能发表评论。


网站导航:
 
<2006年12月>
262728293012
3456789
10111213141516
17181920212223
24252627282930
31123456

导航

统计

常用链接

留言簿(1)

随笔分类(42)

随笔档案(43)

文章分类

相册

搜索

最新评论

阅读排行榜

评论排行榜