Is it possible to reference one column as multiple foreign keys?

No.

That is, you cannot create a foreign key constraint this way. You can however, use a foreign key without a foreign key constraint.

All a foreign key is, is the value of another table’s (or another record in the same table) primary key, which can be used in joins. In fact, you could reference fields other than the primary key, if all you need is to use the value for joins.

However, a foreign key constraint tells the database to enforce the rule that for every foreign key value in a table, the referenced table has a record with that as it’s primary key. Enforcing that every foreign key in the PDF table had a primary key IN ALL FOUR TABLES won’t work for you. So go ahead and use the field to reference other records, but simply do not create any foreign key constraint.

Leave a Comment