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 ?
+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
2010-10-11 09:41:31
+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
2010-10-11 09:36:47