2010-10-12 4 views
0

Comment puis-je utiliser deux ou plusieurs conditions à la jointure? je veux remplacer cette requête avec JOIN version il:plusieurs conditions dans la jointure

select * 
from t1,t2 
where t1.a=t2.b and t1.c=t2.d and t1.e=t2.f 

comment pourrait-il être?

Répondre

5

Cela devrait fonctionner

select * 
from t1 
join t2 
on t1.a = t2.b and t1.c = t2.d and t1.e = t2.f 
Questions connexes