日期:2014-05-19  浏览次数:20474 次

继续请教查询效率问题
请问:多表查询时,以下两种方式哪种效率高些,原因何在?多谢指教!
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 '


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