UrbanPro
true

Learn MS SQL from the Best Tutors

  • Affordable fees
  • 1-1 or Group class
  • Flexible Timings
  • Verified Tutors

Search in

Primary Key VS Unique Key In Database.

Umasankar Natarajan
14/06/2017 0 0
PRIMARY KEY UNIQUE KEY
Primary key is a set of one or more fields/columns of a table that uniquely identify a record in database table. Primary keys must contain unique values. Unique-key is to prevent duplicate values in a column. prevents two records from having identical values in a column.
There will be only one PRIMARY KEY per table. There may be more that one UNIQUE KEY per table.
Should not have a NULL value. Can have a NULL value.
Unique key identifier of the record. May not be unique.
By default, creates clustered index. Creates non-clustered index.
Values can’t change or delete. Values can change or delete.
Can be made into a foreign key into another table. Can not be made into a foreign key into another table.

 

0 Dislike
Follow 0

Please Enter a comment

Submit

Other Lessons for You

Handbook of websites for Website Developers/Designers (software professionals)
Know the trending languages(past & present) and their comparision with other languages: @ https://www.tiobe.com/tiobe-index/ Found an interesting website? identify the technologies used to build...

Virtual (Derived) Column: Oracle 11g R1 (Part 1)
VIRTUAL OR DERIVED COLUMN A nice feature introduced in Oracle 11gR1. Welcome to the practical analysis of various scenarios with virtual columns - introduced in 11gR1 are like normal table columns whose...

What Is Power Query?
Power Query is an Excel add-in that can be used for data discovery, reshaping the data and combining data coming from different sources. Power Query is one of the Excel add-ins provided as part of Microsoft...

What is Microsoft Access?
Microsoft Access has been around for some time, yet people often still ask me what is Microsoft Access and what does it do? Microsoft Access is a part of the Microsoft Office Suite. It does not come with...

Type Error In VBA
VBA Error Types: There are three types of VBA error that you may encounter when executing an Excel macro. These are: Compile Errors/Syntax errors: Compile Errors are recognized by the VBA compiler as...
X

Looking for MS SQL Classes?

The best tutors for MS SQL Classes are on UrbanPro

  • Select the best Tutor
  • Book & Attend a Free Demo
  • Pay and start Learning

Learn MS SQL with the Best Tutors

The best Tutors for MS SQL Classes are on UrbanPro

This website uses cookies

We use cookies to improve user experience. Choose what cookies you allow us to use. You can read more about our Cookie Policy in our Privacy Policy

Accept All
Decline All

UrbanPro.com is India's largest network of most trusted tutors and institutes. Over 55 lakh students rely on UrbanPro.com, to fulfill their learning requirements across 1,000+ categories. Using UrbanPro.com, parents, and students can compare multiple Tutors and Institutes and choose the one that best suits their requirements. More than 7.5 lakh verified Tutors and Institutes are helping millions of students every day and growing their tutoring business on UrbanPro.com. Whether you are looking for a tutor to learn mathematics, a German language trainer to brush up your German language skills or an institute to upgrade your IT skills, we have got the best selection of Tutors and Training Institutes for you. Read more