MySQL Forums
Forum List  »  German

Re: Query mit zweifacher Verknüpfung auf eine Spalte
Posted by: Thomas Wiedmann
Date: November 27, 2011 04:20AM

Hallo Jörg,

so..? oder habe ich was nicht verstanden?

mysql> SELECT a.*, la.*
    ->   FROM adress a
    ->   JOIN lieferanschrift la
    ->     ON a.nr = la.kunde
    -> ORDER BY a.nr;
+----+-------+---------+------+-------+----------+
| nr | name  | strasse | ort  | kunde | lieferAn |
+----+-------+---------+------+-------+----------+
|  1 | Anton | Agasse  | Aort |     1 |        1 |
|  1 | Anton | Agasse  | Aort |     1 |        2 |
|  1 | Anton | Agasse  | Aort |     1 |        3 |
|  4 | Berta | Bgasse  | Bort |     4 |        5 |
+----+-------+---------+------+-------+----------+
4 rows in set (0.00 sec)

mysql>

Grüße
Thomas

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Query mit zweifacher Verknüpfung auf eine Spalte
1092
November 27, 2011 04:20AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.