User Name Password Register
DaniWeb IT Discussion Community
All
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
Reply
Join Date: Aug 2004
Location: Victoria, BC, Canada
Posts: 8
Reputation: csc Mindy is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
csc Mindy's Avatar
csc Mindy csc Mindy is offline Offline
Newbie Poster

mySQL foreign keys

  #1  
Aug 5th, 2004
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
AddThis Social Bookmark Button
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb MySQL Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the MySQL Forum

All times are GMT -4. The time now is 8:12 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC