•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the MySQL section within the Web Development category of DaniWeb, a massive community of 391,665 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,876 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our MySQL advertiser:
Views: 527 | Replies: 2
![]() |
•
•
Join Date: Mar 2007
Posts: 2
Reputation:
Rep Power: 0
Solved Threads: 0
Hi there I'm setting up twp table that are linked with a foreign key.
members
customer_id (primary)
fobnumber ZERO FILLED
firstname
lastname
emailaddress
access_id (foreign)
userAccess
access_id (primary)
username
password
(engine: InnoDB)
I have created recreated these tables, when both tables seem to linked. Data will go in to one database but not the other. i get the following error:
#1452 - Cannot add or update a child row: a foreign key constraint fails
please help
Craig.
members
customer_id (primary)
fobnumber ZERO FILLED
firstname
lastname
emailaddress
access_id (foreign)
userAccess
access_id (primary)
username
password
(engine: InnoDB)
I have created recreated these tables, when both tables seem to linked. Data will go in to one database but not the other. i get the following error:
#1452 - Cannot add or update a child row: a foreign key constraint fails
please help
Craig.
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb MySQL Marketplace
Similar Threads
- DB Design, trying to keep in sync without foreign-keys (Database Design)
- Varchar field as foreign reference (MySQL)
- VB and Excel. (Visual Basic 4 / 5 / 6)
- Referential Integrity (Database Design)
- Multiple Tables in a Database (Visual Basic 4 / 5 / 6)
- Multi-threading with C++.NET (C++)
- Assigning Foreign Keys (Database Design)
- mySQL foreign keys (MySQL)
- Primary Key Issue (Visual Basic 4 / 5 / 6)
Other Threads in the MySQL Forum
- Previous Thread: Regarding Mysql Query
- Next Thread: Inserting data from one row and change one field


Linear Mode