Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Question on sql syntax: *=

I have some older (broken) code that has a join using a *=

table1.ID *= table2.ID

Is this a left outer join or a right outer join? (My error message indicates it is one of those)

like image 833
thursdaysgeek Avatar asked Mar 29 '10 20:03

thursdaysgeek


2 Answers

*= (LEFT OUTER JOIN)

=* (RIGHT OUTER JOIN)

But rather make use of the LEFT/RIGHT JOINS

like image 76
Adriaan Stander Avatar answered Nov 14 '22 15:11

Adriaan Stander


*= indicates left-outer join and =* indicates right-outer join.

EDIT:

I had my joins mixed up, have been corrected.

like image 33
Anthony Forloney Avatar answered Nov 14 '22 16:11

Anthony Forloney