Einzelnen Beitrag anzeigen

Benutzerbild von Flogo
Flogo

Registriert seit: 24. Mär 2003
Ort: Freiburg im Breisgau
317 Beiträge
 
Delphi 7 Professional
 
#12

Re: Eine Tabelle verweist auf sich selbst

  Alt 14. Jul 2005, 10:40
Ich muss diesen Thread jetzt doch nochmal ausgraben:

Wie erwähnt arbeite ich mit Access und versuche eine Tabelle mit zwei Fremdschlüsseln (VonKünstler; ZuKünstler) auf den gleichen Primary Key (Künstler_ID) zu erstellen. Beim Versuch das in Access umzusetzten bin ich auf ein Problem gestoßen:

Entweder wird eine zweite Tabelle ("Künstler_1") angelegt oder es kommt folgende Fehlermeldung:
Zitat:
Microsoft Access can't enforce referential integrity for this relationship
Make shure the fields you drag are primary key fields or uniquely indexed and that the unique index or the primary key is correctly set.
If you want to create a relationship without following the rules of referential integrity, clear the enforce referential integrity checkbox
[OK]
Welche von beiden Möglichkeiten ist die richtige? Keine referentielle Integrität oder eine zweite Tabelle?
If one coincidence can occur, then another coincidence can occur. And if one coincidence happens to occur just after another coincidence, then that is just a coincidence.
DNA

www.Anyxist.de
  Mit Zitat antworten Zitat