---
title: "Discussion on \"Foriegn key in sql\" | Hashnode"
description: "Discussion on \"Foriegn key in sql\". A foreign key is a field (or collection of fields) in a table that refers to the primary key in another table. It is used to establish a relationship between the two tables.\nA foreign key is usually implemented as a column (or group of columns) in a ..."
url: "https://hashnode.com/posts/foriegn-key-in-sql/63a40827eb636411f0054365"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Foriegn key in sql](https://rushikeshpise.hashnode.dev/foriegn-key-in-sql?utm_source=hashnode&utm_medium=feed)

A foreign key is a field (or collection of fields) in a table that refers to the primary key in another table. It is used to establish a relationship between the two tables. A foreign key is usually implemented as a column (or group of columns) in a ...

Dec 22, 2022 · 2 min read · rushikeshpise.hashnode.dev  
Read the article

-   [#sql](https://hashnode.com/tag/sql)
-   [#mysql](https://hashnode.com/tag/mysql)
-   [#databases](https://hashnode.com/tag/databases)
-   [#developer](https://hashnode.com/tag/developer)
-   [#development](https://hashnode.com/tag/development)

## Written by

[Rushikesh Pise](https://hashnode.com/@RushikeshPise)

@RushikeshPise · Hyderabad,India

  
[View profile](https://hashnode.com/@RushikeshPise)

Software Developer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
