Visual explanation of MySQL joins: Difference between revisions

Jump to navigation Jump to search
Line 78: Line 78:
SELECT * FROM table_a
SELECT * FROM table_a
RIGHT JOIN table_b
RIGHT JOIN table_b
ON table_a.id = table_b.id;
/*相同效果的別種寫法*/
SELECT * FROM table_a
RIGHT OUTER JOIN table_b
ON table_a.id = table_b.id;
ON table_a.id = table_b.id;
</pre>
</pre>

Navigation menu