【发布时间】:2010-09-09 12:26:13
【问题描述】:
例如哪个更好:
select * from t1, t2 where t1.country='US' and t2.country=t1.country and t1.id=t2.id
或
select * from t1, t2 where t1.country'US' and t2.country='US' and t1.id=t2.id
更好,因为数据库工作更少,结果更快。
注意: Sybase,在country+id的两个表上都有索引。
【问题讨论】:
-
sybase,并且country+id的两个表都有索引