---
title: "What is Foreign Key in database?"  
description: "What is Foreign Key in database?"  
author: "Anonymous User"  
published: 2010-10-20  
updated: 2020-09-16  
canonical: https://www.mindstick.com/interview/68/what-is-foreign-key-in-database  
category: "mssql server"  
tags: ["mssql server"]  
reading_time: 1 minute  

---

# What is Foreign Key in database?

When a primary key of a table is used as a key in any other table then the key in the second table becomes the foreign key for that table.This allows the references integrity to be inforced on that table.

## Answers

### Answer by Pushpendra Singh

When a primary key of a table is used as a key in any other table then the key in the second table becomes the foreign key for that table.This allows the references integrity to be inforced on that table.


---

Original Source: https://www.mindstick.com/interview/68/what-is-foreign-key-in-database

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
