Thread esskar in der SQL welt (27 answers)
Opened by esskar at 2006-09-26 10:47

esskar
 2006-10-20 15:44
#34715 #34715
User since
2003-08-04
7321 Artikel
ModeratorIn

user image
was ist denn der genaue unterschied zwischen folgenden SELCTS unter mySQL.

[sql]SELECT * from candidate, photos WHERE candidate.id = photos.candidate_id AND candidate.id = 7;
[/sql]

[sql]SELECT * from candidate INNER JOIN photos ON candidate.id = photos.candidate_id WHERE candidate.id = 7;
[/sql]

[sql]SELECT * from candidate LEFT JOIN photos ON candidate.id = photos.candidate_id WHERE candidate.id = 7;
[/sql]

[sql]SELECT * from candidate RIGHT JOIN photos ON candidate.id = photos.candidate_id WHERE candidate.id = 7;
[/sql]

irgendwie raff ich es noch nicht.
momentan bekomm ich nämlich immer das selbe ergebnis!

View full thread esskar in der SQL welt