Created
July 6, 2012 08:16
-
-
Save jrvaja/3058892 to your computer and use it in GitHub Desktop.
SQL: JOIN
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Only returns columns from table1 | |
SELECT table1 * from table1 INNER JOIN table2 on table1.id=table2.id; | |
//Returns all columns | |
SELECT * from table1 INNER JOIN table2 on table1.id=table2.id; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment