MySQL Forums
Forum List  »  PHP

Re: adding rows to InnoDB-child
Posted by: Felix Geerinckx
Date: September 26, 2005 12:29PM

scuba wrote:

> I've set up a parent-child relation with two INNODB tables. Updating and editing works great,
> but when I add a new row in my parent, the row is not added in the child.

It's seems you haven't totally understood what referential actions do. I advise you to (re)read http://dev.mysql.com/doc/mysql/en/innodb-foreign-key-constraints.html


> Is it actually possible to auto-add rows with foreign key relations and how does that work?

You can use a trigger (in MySQL 5).

--
felix
Please use BBCode to format your messages in this forum.

Options: ReplyQuote


Subject
Written By
Posted
September 26, 2005 11:01AM
Re: adding rows to InnoDB-child
September 26, 2005 12:29PM


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.