mySQL foreign keys

Reply

Join Date: Aug 2004
Posts: 8
Reputation: csc Mindy is an unknown quantity at this point 
Solved Threads: 0
csc Mindy's Avatar
csc Mindy csc Mindy is offline Offline
Newbie Poster

mySQL foreign keys

 
0
  #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
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC