select t.*,t2.* From (select * from t1 where id>1000) as t Inner Join t2 On t1.id=t2.idt1
select * from tableA left join talbeB on (tableA.A_field_1=tableB.B_field_1 and tableB.B_field_22='10') where tableA.act_flag=1可以对表A的数据进行筛选 ,也可以对表B的数据进行筛选 , 也不会影响left join
Inner Join t2 On t1.id=t2.idt1
where tableA.act_flag=1可以对表A的数据进行筛选 ,也可以对表B的数据进行筛选 ,
也不会影响left join
是on先执行,还是where先执行?
哪位dx认为可以,请解释.gz