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
Post a Comment