What is foreign key in database?
By Arsal Ahmed   Posted on March-20-2018 523
A foreign key is a column or group of columns in a relational database table that provides a link between data in two tables and it acts as a cross reference between tables. Because it references the primary key of another table and thereby establishing a link between them.
- The foreign shows relationship between two tables.
- When the primary key is inserted in first table and when the first table connects with the second table in database.
- Then the relationship shows the link between the two tables in sql server.
By Arsal Ahmed   20-Mar-2018 Views 523
Share This with your friend by choosing any social account
You may also read following recent articles
![]() |
What is NLP in AI!
Junaid A 18-Sep-2023 |
![]() |
The Top 10 SEO Audit Tools for Supercharging Your Website's Performance!
MUHAMMAD SALMAN TAHIR 13-Sep-2023 |
![]() |
Common question about OpenAI!
Junaid A 13-Sep-2023 |
![]() |
What is LLMs in AI!
Junaid A 12-Sep-2023 |
![]() |
main types of artificial intelligence!
Junaid A 10-Sep-2023 |
![]() |
sadfgfwdasxdasdadasdasd!
Junaid A 05-Sep-2023 |