读书人

继续请问查询效率有关问题

发布时间: 2012-01-26 19:40:46 作者: rapoo

继续请教查询效率问题
请问:多表查询时,以下两种方式哪种效率高些,原因何在?多谢指教!
1、select a.t1,a.t2,b.t3,b.t4,c.t5,c.t6
from biao1 a,biao2 b,biao3 c
where a.id=b.id and a.id=c.id and a.rq= '2007-01-01 '
2、select a.t1,a.t2,b.t3,b.t4,c.t5,c.t6
from biao1 a join biao2 b on a.id=b.id
join biao3 c on a.id=c.id
where a.rq= '2007-01-01 '


[解决办法]
一样的
[解决办法]
一样的.
[解决办法]
只是写法不同。效率一样
[解决办法]
一样的,写法不同,不过第二种是比较标准的写法

读书人网 >SQL Server

热点推荐