MySQL Forums
Forum List  »  Partitioning

Re: Foreign key constraints with partitioning
Posted by: Phil Hildebrand
Date: March 27, 2009 10:35PM

You can't really do that out of the box currently, but you can do it via triggers.

I put an example on my blog a while back here: http://opendba.blogspot.com/2008/10/mysql-partitioned-tables-with-trigger.html

Essentially you use an insert and delete trigger to check the id's in the foreign table.

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Foreign key constraints with partitioning
6507
March 27, 2009 10:35PM


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.