What is a foreign key?
Are you preparing for IT certification? With practice questions, study notes, interactive quizzes, tips and technical articles, uCertify PrepKits ensure that you get a solid grasp of core technical concepts to ace your certification exam in first attempt.
What is a foreign key?
Rating:
A foreign key is the primary key of one entity that is copied into another entity. The objective of a foreign key is to provide a relationship between the two entities. The example given below describes a foreign key. For example, there are two tables, Author and Book.
Author
| Book
|
Here, AuthorID is the primary key of the Author table, and it is migrated from the Author table to the Book table. In the Book table, it is referred to as the foreign key.
Rating:
Was this information helpful?
Other articles
- What are the responsibilities of a Web site analyst in a Web project?
- What is cardinality?
- What is a worm?
- What are public IP addresses?
- What is the <DIV> tag?
