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 Fremdschlüssel

Empfohlene Antworten

hoi

i hätt mal ne Frage: gibt es bie mysql Fremdschlüssel???

es frisst zwar diesen Befehl: ALTER TABLE Buecher ADD CONSTRAINT FOREIGN KEY (VerlagNr) REFERENCES Verlage(VerlagNr);

aber ich glaube dass er nichts bewirkt.

kann mir jemand weiterhelfen???

thanks

didii

hi,

ich benütz auch ne mysql db und arbeite mit foreign keys. bei mir funktionierts.

kleines beispiel von mir:

CREATE TABLE test (

  id int primary key, 

  projektnr int references auftraege(projnr))

wieso meinst du denn, dass es bei dir nicht funktioniert?

du solltest deinem fremdschlüssel vielleicht noch einen datentyp zuweisen.

mfg

MySQL unterstützt mit dem standard Tabellentyp MyISAM keine Fremdschlüssel.

In MySQL Server 3.23.44 and up, InnoDB tables support checking of foreign key constraints. See section 7.5 InnoDB Tables. For other table types, MySQL Server does parse the FOREIGN KEY syntax in CREATE TABLE commands, but without further action being taken.

aus: http://www.mysql.com/doc/en/ANSI_diff_Foreign_Keys.html

gruß gurkenpapst

hab mich da zwar selbst zitiert, aber der komplette Thread ist http://fachinformatiker-world.de/forums/showthread.php?threadid=35657&highlight=mysql+fremdschl%FCssel ziemlich weit unten

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.