Does join order is determined on mention of table in sequence or on the order of tables in 'on' clause?
Is
select *
from A
left
join B
on A.id=B.id
same as
select *
from A
left
join B
on B.id = A.id
?
Does join order is determined on mention of table in sequence or on the order of tables in 'on' clause?
Is
select *
from A
left
join B
on A.id=B.id
same as
select *
from A
left
join B
on B.id = A.id
?
Yes, although I prefer the second option. It sounds more like natural language to my ear.
They are the same. The logical conditions are commutative. Read here for more insights on MySQL joins.