1、不要直接去关联表名查询,在关联表外加个select查询。
select * from tab1 a inner join (select * from tab2) b on a.fld1=b.fld2
2、主表有条件先select一遍主表,关联表有条件最好放最后where后(注意:条件放最后和放关联表中查询有时是不一样的)
select * from (select * from tab1 where cond1='val1') a inner join tab2 b on a.fld1=b.fld2 where b.cond2='val2'
3、各种查询方式都多试试,有时候逻辑上感觉查询方式没有区别,查询时间却有很大区别。