---
title: "Discussion on \"Unique Key Vs Primary Key\" | Hashnode"
description: "Discussion on \"Unique Key Vs Primary Key\". Primary Key:\na. It must contain unique values for each row, meaning no two rows can have the same value in the primary key column(s).\nb. A primary key column cannot contain NULL values, as it must uniquely identify each row.\nc. A table can have only ..."
url: "https://hashnode.com/posts/unique-key-vs-primary-key/64d61ab6e36b73d42a4ab6bc"
---

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

Discussion

# [Unique Key Vs Primary Key](https://dikshyasubedi.hashnode.dev/unique-key-vs-primary-key?utm_source=hashnode&utm_medium=feed)

Primary Key: a. It must contain unique values for each row, meaning no two rows can have the same value in the primary key column(s). b. A primary key column cannot contain NULL values, as it must uniquely identify each row. c. A table can have only ...

Aug 11, 2023 · 1 min read · dikshyasubedi.hashnode.dev  
Read the article

-   [#databases](https://hashnode.com/tag/databases)
-   [#primary-key](https://hashnode.com/tag/primary-key)
-   [#unique-key](https://hashnode.com/tag/unique-key)
-   [#rdms](https://hashnode.com/tag/rdms)

## Written by

[Dikshya Subedi](https://hashnode.com/@Dikshya056)

@Dikshya056

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
