Can a table have 2 foreign keys?
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Anupam SinghRank #643 · 3.7K reputationPosted Jun 22, 2014, 10:49 PM EDT
Read this http://www.w3schools.com/sql/sql_foreignkey.asp
Abhishek JaiswalRank #126 · 17.5K reputationPosted Jun 23, 2014, 4:08 AM EDT
yeah, a table can have multiple foreign keys, as each foreign key is independently enforced by database. (each foreign key can have different parent table.)
:)