| | | | |
| |||||||
| Datenbanken SQL und Co |
|
| | LinkBack | Themen-Optionen | Thema bewerten |
| | |
| PHP Code Flüsterer Registriert seit: 21.08.2005 Beiträge: 4682 PHP-Kenntnisse: Fortgeschritten | |
| | ||
| Benutzer Registriert seit: 12.10.2005
Beiträge: 67
![]() | Zitat:
Wenn ich in "content_main" etwas eintrage vergibt er automatisch eine ID, diese ID soll die andere Tabelle als Fremdschlüssel verwenden. Wird aber leider nicht automatisch erstellt, also hab ich mal versucht die ID von Tab.1 in Tab.2 einzutragen, einfach nur um zu testen. Macht er, ohne Fehler, aber das hilft mir nun nicht wirklich weiter, denn die soll ja autom. erstellt werden.
__________________ Argon ist mit etwa 0,933 Volumen % das am häufigsten in der Atmosphäre vorkommende Edelgas. | |
| | |
| | |
| Erfahrener Benutzer Registriert seit: 21.05.2008
Beiträge: 9.937
![]() | Da habe ich zuwenig Ahnung von der Materie. Aber du wolltest doch Fremdschlüssel Referenzen verwenden, die musst du dann eben auch explizit festlegen musst. Denke eher du hast einen Logikfehler. Aber wie gesagt, ich weiß es nicht, ich vermute es nur. Vielleicht haben andere mehr Ahnung davon. |
| | |
| | ||
| Benutzer Registriert seit: 12.10.2005
Beiträge: 67
![]() | Zitat:
Ich hab es jetzt so gelöst, dass ich die zu letzt benutzte ID, von Tab.1, in $lastID speichere ($lastID = mysql_insert_id() Naja, ist zwar nicht das was ich wollte, aber momentan find ich keine andere Lösung! Danke für den Hinweis! cu Argon
__________________ Argon ist mit etwa 0,933 Volumen % das am häufigsten in der Atmosphäre vorkommende Edelgas. | |
| | |
| | ||
| Erfahrener Benutzer Registriert seit: 21.05.2008
Beiträge: 9.937
![]() | http://dev.mysql.com/doc/refman/5.0/...unique-id.html Zitat:
| |
| | |
|
| Themen-Optionen | |
| Thema bewerten | |
|
|
Ähnliche Themen | ||||
| Thema | Autor | Forum | Antworten | Letzter Beitrag |
| php5 auf apache2 einrichten | Server, Hosting und Workstations | 4 | 24.08.2005 15:55 | |
| Problem: Cannot modify header information | Alpha Centauri | PHP Tipps 2005 | 11 | 25.04.2005 13:05 |
| update auf php 5.0.4 | robo47 | Server, Hosting und Workstations | 6 | 10.04.2005 19:00 |
| Besucher kamen über folgende Suchanfragen bei Google auf diese Seite |
| cannot add or update a child row: a foreign key constraint fails, cannot add or update a child row, cannot add or update a child row a foreign key constraint fails, #1216 - cannot add or update a child row: a foreign key constraint fails, cannot add or update a child row:, \cannot add or update a child row: a foreign key constraint fails\, mysql error \cannot add or update a child row\ foreign key, \cannot add or update a child row\, cannot add or update a child row: a foreign key constraint fails (, cannot add or update a child row a foreign key constraint fails mysql, magento cannot add or update a child row: a foreign key constraint fails, error \'cannot add or update a child row: a foreign key constraint fails, cannot add or update child row, annot add or update a child row: a foreign key constraint fails, error: cannot add or update a child row: a foreign key constraint fails, mysql 1216, mysql cannot add or update a child row a foreign key constraint fails, mysql cannot add or update a child row: a foreign key constraint fails, \cannot add or update a child row: a foreign key constraint fails \, can not add or update child row |

Dieser Inhalt ist unter einer Creative Commons-Lizenz lizenziert.