Signup/Sign In

Answers

All questions must be answered. Here are the Answers given by this user in the Forum.

A foreign key can be set to allow NULL values, but it cannot be set to allow duplicate values. A foreign key is used to establish a link between the data in two tables, and the values in the foreign key column of one table must match the values in the primary key column of another table. Allowing duplicate values in a foreign key would violate the unique constraint of the primary key and would not establish a clear link between the data in the two tables.
one year ago