会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
做有意义的事儿
天行健,君子以自强不息!
对多表联合查询的SQl语句的改进,大幅提高查询性能 (转)
常用的多表联合查询的sql语句:
select table1.ID from table1 inner join table2 on table1.ID=table2.ID
where table2.col2='xxx'
改进后:
select a.ID from table1 a,
(select col1,ID from table2 where col2='xxx') b
where a.ID=b.ID
posted on
2007-11-23 15:31
恋地高飞
阅读(
1281
) 评论(
1
)
编辑
收藏
举报
会员力量,点亮园子希望
刷新页面
返回顶部
导航
管理