•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the MySQL section within the Web Development category of DaniWeb, a massive community of 397,851 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,316 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: 11154 | Replies: 0
![]() |
•
•
Join Date: Aug 2004
Location: Victoria, BC, Canada
Posts: 8
Reputation:
Rep Power: 0
Solved Threads: 0
I am trying to create an INNODB table with a foreign key, and it doesnt seem to be working. Can someone give me an example on how to use a foreign key. Here is an example of what i have:
FOREIGN KEY (client_id) REFERENCES CLIENT (client_id)
This line is preventing me from creating the table. It works without this line. Someone please help me
FOREIGN KEY (client_id) REFERENCES CLIENT (client_id)
This line is preventing me from creating the table. It works without this line. Someone please help me
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb MySQL Marketplace
Similar Threads
- phpmyadmin help (PHP)
- SQL Queries help (Database Design)
- Entity Definition (Community Introductions)
- 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)
- Primary Key Issue (Visual Basic 4 / 5 / 6)
Other Threads in the MySQL Forum
- Previous Thread: libmysqld
- Next Thread: MySQL nested query / joined query conversion help


Linear Mode