MySQL Forums
Forum List  »  German

Foreign Key
Posted by: heinrich birgit
Date: April 07, 2014 03:04AM

in einer DB habe ich u.a. 2 Tabellen: Eine Tabelle Vorlesung mit einer primary key Spalte VorlesungID und eine Tabelle Uebung mit einer primary key Spalte Uebung ID. Eine dritte Tabelle termin soll eine Spalte haben mit Verweis sowohl auf UebungID als auch VorlesungID, den sowohl Uebung als auch Vorlesung haben termine. Wie kann ich eine Spalte in termin mit Foreign Key auf VorlesungID bzw. UebungID definieren. Aus verschiedenen Grunde dürfen die Tabellen Vorlesung und Uebung nicht zu einer Tabelle zusammengefasst werden.

Options: ReplyQuote


Subject
Views
Written By
Posted
Foreign Key
1113
April 07, 2014 03:04AM


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.