How to set Foreign Key in mysql between Two different databases? -


i have database , database b. in database set company_id primary key. in database b have set same company_id reference. possible set b.company_id foreign key? if yes means how set b.company_id foreign key?

any relationship between/among tables confined within schema. cannot define foreign key constrain between 2 unrelated tables in 2 different schema. if have real need o need re-think database design.


Comments

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -