Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

mySQL: Wie loest man m:n-Relationen auf?

Empfohlene Antworten

Veröffentlicht

Frage an mySQL-Experten:

Habe gerade mit Verwunderung gelesen, dass mySQL keine Fremdschluessel unterstuetzt.

Normalerweise loest man ja m:n-Relationen mit Hilfe von Zwischentabellen und Fremdschluesseln auf. Wie macht man das denn ohne Fremdschluessel?

ciao

Uli

------------------

Uli's Prüfungspages ... die Seite mit den Prüfungshinweisen

Ich bin kein mySQL-Experte, aber ich antworte trotzdem mal.

hier ein Auszug aus der mySQl-Online-Hilfe:

"MySQL unterstützt noch keine Fremdschlüssel. Daher muß man die SQL Statements so schreiben, daß mit INSERT und UPDATE alle Tabellen geupdatet werden. "

Ich hoffe das hilft dir.

Avidus

Fremdschlüssel haben "nur" den Vorteil, das die referentielle Integrität erzwungen werden kann.

Auch bei MySQL löst du deine m:n Relationen mit einer Verknüpfungstabelle auf. Für die referentielle Integrität muß deine Software sorgen(!), wie Avidus schon sagte.

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.