MySQL InnoDB外键在不同的数据库之间 [英] MySQL InnoDB foreign key between different databases
本文介绍了MySQL InnoDB外键在不同的数据库之间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想知道在 MySQL
中的InnoDB是否可能有表
与外部键,它引用不同数据库中的另一个表
?
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
?
如果是这样,怎么办?
推荐答案
我对 http://没有任何限制dev.mysql.com/doc/refman/5.1/en/innodb-foreign-key-constraints.html 。
所以只要使用 otherdb .othertable ,你会很好。
So just use otherdb.othertable and you will be good.
这篇关于MySQL InnoDB外键在不同的数据库之间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文