views:

36

answers:

2

I would like to know if it's possible in innodb in mysql to have a table with foreign key that references another table in a different database ? And if so, how this can be done ?

+2  A: 

It's possible : Link to do it

Spilarix
+1 Must add that if in addition to the link, had you summarized the contents of the link in the answer here, would be a bit more helpful!
InSane
+1  A: 

I do not see any limitation on http://dev.mysql.com/doc/refman/5.1/en/innodb-foreign-key-constraints.html .

So just use otherdb.othertable and you will be good.

BarsMonster