MySQL Forums
Forum List  »  InnoDB

Re: Foregn Keys and InnoDB not working as expected with 3.23.53
Posted by: Kelly Penhall-Wilson
Date: February 25, 2005 11:20AM

Thanks much - interesting thing is that i did not get an error when creating the tables with that syntax. Any idea why?

I was able to add the constraint with the following syntax and it worked as expected (I first had to resolve the non-referenced rows):

alter table child
add constraint chl_prn_fk foreign key (parentid)
references parent(parentid)
on delete cascade
on update cascade;

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Foregn Keys and InnoDB not working as expected with 3.23.53
2453
February 25, 2005 11:20AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.