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.

Empfohlene Antworten

Veröffentlicht

Hallo Leute, 

ich hab das Problem das ich keine Fremdschlüssel erstellen kann und ich weis einfach nicht wieso. 

ich kriege jedes mal den fehler:

SQL-Befehl:ALTER TABLE `kpi` ADD FOREIGN KEY (`times_id`) REFERENCES `times`(`id`) ON DELETE RESTRICT ON UPDATE RESTRICT;

MySQL meldet: Dokumentation

#1452 - Kann Kind-Zeile nicht hinzufügen oder aktualisieren: eine Fremdschlüsselbedingung schlägt fehl (`test`.`#sql-2740_236a`, CONSTRAINT `#sql-2740_236a_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `user` (`id`))

 

tabelle KPI	
Name	Typ	Kollation	Attribute	Null	Standard	Kommentare	Extra	Aktion
	1	idPrimärschlüssel	int(11)	Nein	kein(e)		AUTO_INCREMENT	
	2	user_id	int(11)		int(11) Nein	kein(e)		


tabelle user

#	Name	Typ	Kollation	Attribute	Null	Standard	Kommentare	Extra	Aktion
	1	idPrimärschlüssel	int(11)		Nein	kein(e)		AUTO_INCREMENT
  • 1 Monat später...

Erstelle ein Konto oder melde dich an, um einen Kommentar zu schreiben.

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.