Mysql join practices use LEFT JOIN and INNER JOIN only? -
as reading joins realize 2 of in work others same. correct?
inner join
= join
left join
= left outer join
are there joins use?
from http://dev.mysql.com/doc/refman/5.0/en/join.html:
join_table: table_reference [inner | cross] join table_factor [join_condition] | table_reference straight_join table_factor | table_reference straight_join table_factor on conditional_expr | table_reference {left|right} [outer] join table_reference join_condition | table_reference natural [{left|right} [outer]] join table_factor
text within braces optional. inner
, cross
keywords optional normal join
(the documentation mentions this). outer
keyword optional outer (left
|right
) joins.
this bit clearer in natural left join
not same natural join
, inner
, cross
, , outer
keywords optional when used in correct spot.
note mysql specific. not case in standard sql.
Comments
Post a Comment