If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > Foreign Key Creation Problem

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-04-04, 10:27
Wealth-Builderz Wealth-Builderz is offline
Registered User
 
Join Date: Oct 2004
Posts: 29
Foreign Key Creation Problem

I'm currently using MySQL Query Browser to create my database but I seem to be having trouble creating the foreign keys.

The auto-generated code is created below but it throws up an error when executed:

SQL Query

ALTER TABLE projectdatabase.notifications ADD FOREIGN KEY Person_ID (Person_ID)
REFERENCES persons (Person_ID)
ON DELETE CASCADE
ON UPDATE CASCADE;

Reply With Quote
  #2 (permalink)  
Old 12-04-04, 10:51
Wealth-Builderz Wealth-Builderz is offline
Registered User
 
Join Date: Oct 2004
Posts: 29
Problem solved.

Last edited by Wealth-Builderz; 12-04-04 at 14:47.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On