answersLogoWhite

0


Best Answer

No. A foreign key may only point to only one collumn on one other table, and a collumn may only have one foreign key reference assigned to it.

User Avatar

Wiki User

15y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Can a single MySQL column be referenced as a foreign key to multiple tables?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What Foreign key?

In the context of relational databases, a foreign key is a referential constraint between two tables.[1] The foreign key identifies a column or a set of columns in one (referencing) table that refers to a column or set of columns in another (referenced) table. The columns in the referencing table must be the primary key or other candidate key in the referenced table. The values in one row of the referencing columns must occur in a single row in the referenced table. Thus, a row in the referencing table cannot contain values that don't exist in the referenced table (except potentially NULL). This way references can be made to link information together and it is an essential part of database normalization. Multiple rows in the referencing table may refer to the same row in the referenced table. Most of the time, it reflects the one (master table, or referenced table) to many (child table, or referencing table) relationship. The referencing and referenced table may be the same table, i.e. the foreign key refers back to the same table. Such a foreign key is known in SQL:2003 as self-referencing or recursive foreign key. A table may have multiple foreign keys, and each foreign key can have a different referenced table. Each foreign key is enforced independently by the database system. Therefore, cascading relationships between tables can be established using foreign keys. Improper foreign key/primary key relationships or not enforcing those relationships are often the source of many database and data modeling problems.


What is foreign key?

In the context of relational databases, a foreign key is a referential constraint between two tables.[1] The foreign key identifies a column or a set of columns in one (referencing) table that refers to a column or set of columns in another (referenced) table. The columns in the referencing table must be the primary key or other candidate key in the referenced table. The values in one row of the referencing columns must occur in a single row in the referenced table. Thus, a row in the referencing table cannot contain values that don't exist in the referenced table (except potentially NULL). This way references can be made to link information together and it is an essential part of database normalization. Multiple rows in the referencing table may refer to the same row in the referenced table. Most of the time, it reflects the one (master table, or referenced table) to many (child table, or referencing table) relationship. The referencing and referenced table may be the same table, i.e. the foreign key refers back to the same table. Such a foreign key is known in SQL:2003 as self-referencing or recursive foreign key. A table may have multiple foreign keys, and each foreign key can have a different referenced table. Each foreign key is enforced independently by the database system. Therefore, cascading relationships between tables can be established using foreign keys. Improper foreign key/primary key relationships or not enforcing those relationships are often the source of many database and data modeling problems.


What is a foreign key?

In the context of relational databases, a foreign key is a referential constraint between two tables.[1] The foreign key identifies a column or a set of columns in one (referencing) table that refers to a column or set of columns in another (referenced) table. The columns in the referencing table must be the primary key or other candidate key in the referenced table. The values in one row of the referencing columns must occur in a single row in the referenced table. Thus, a row in the referencing table cannot contain values that don't exist in the referenced table (except potentially NULL). This way references can be made to link information together and it is an essential part of database normalization. Multiple rows in the referencing table may refer to the same row in the referenced table. Most of the time, it reflects the one (master table, or referenced table) to many (child table, or referencing table) relationship. The referencing and referenced table may be the same table, i.e. the foreign key refers back to the same table. Such a foreign key is known in SQL:2003 as self-referencing or recursive foreign key. A table may have multiple foreign keys, and each foreign key can have a different referenced table. Each foreign key is enforced independently by the database system. Therefore, cascading relationships between tables can be established using foreign keys. Improper foreign key/primary key relationships or not enforcing those relationships are often the source of many database and data modeling problems.


What are the differences between primary key foreign key and candidate key?

A primary key is a column which uniquely identifies the records in a table. In a broad sense, a primary key is the mixture of a unique key and an index: A column with a primary key is indexed to deliver a faster query, and doesn't allow duplicate values to ensure specific data. Most programmers recommend all tables having a primary key (and only one) to enhance the speed of queries and overall database performance. An example of a primary key may be found in a table named "departments," which might have a column named "department_number" that uniquely identifies each department in the table with a number.A foreign key is a column (the child column ) in a table which has a corresponding relationship and a dependency on another column (the parent column ) that is usually in a different table. Parent columns can have multiple child columns, but a child column can only have one parent column. The child column is the column with the foreign key; the parent column does not have the foreign key "set" on it, but most databases require the parent column to be indexed. Foreign keys are made to link data across multiple tables. A child column cannot have a record that its parent column does not have. Say a table named "employees" has 20 employees (rows) in it. There are 4 departments in the "departments" table. All 20 employees must belong to a department, so a column in the "employees" table named "department" would point to the primary key in the "departments" table using a foreign key. Now all employees must belong to a department as specified by the "departments" table. If a department isn't specified in the "departments" table, the employee cannot be assigned to it.A candidate key would be any key which could be used as the primary key, which means that the combination of the columns, or just the single column would create a unique key. You would then need to determine which of these candidate keys would work best as your primary key.


What is single column tariff?

Single-Column TariffThe single-column, also known as uni-linear tariff system, provides a uniform rate of duty for all like commodities without making any discrimination between countries.


Can an array be a single column of values?

Yes.


What is single row subquery in sql?

a single row subqury is a query which will return a single row and single column


You can associate multiple credentials with a single scan?

You can associate multiple credentials with a single scan


Are frogs single cell or multiple?

Multiple.


What is the difference between single column cash book and double column cash book?

In single column cash book only cash account is shown while in multi column cash book cash as well as bank account is also shown.


What is the difference between a column constraint and a table constraint?

column constraint is for a single column. table constraint is for an entire table.


Is minecraft a single payment or multiple?

Single.