What is difference between Primary Key and Unique Key in SQL
What is the difference between Primary Key and Unique Key in SQL? Please tell me in your words only. I request you don't post a link to read further.I need answer in simple way.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Jaish MathewsRank #225 · 11K reputationPosted Feb 29, 2020, 7:11 AM EST
Rajanikant HawaldarRank #110 · 20.2K reputationPosted Feb 29, 2020, 1:18 AM EST
Sanghdeep SanghratneRank #2,132 · 669 reputationPosted Feb 29, 2020, 4:54 AM EST
Priyanka SinghRank #1,215 · 1.5K reputationPosted Feb 29, 2020, 6:55 PM EST
Rajeev KumarRank #1,334 · 1.3K reputationPosted Mar 6, 2023, 8:41 AM EST
The primary key is accepted as a unique or sole identifier for every record in the table. In the case of a primary key, we cannot save NULL values. In the case of a unique key, we can save a null value, however, only one NULL value is supported