Getting Started with Adobe After Effects - Part 6: Motion Blur
This module helps you to share, discuss and learn interview questions and answers of different technologies

Difference between Unique Key and Primary key

Oct 29 2011 10:32AM by Vivek Johari   

Question

What is the difference between Unique Key and Primary key?

Answer

1)There can be only one Primary key possible in a table but there can be many unique keys possible in a table.

2)Primary key do not allow NULL values but a Unique key allow one NULL value.If we try to insert NULL value into the primary key, we get an error message.

3)When a Primary key is created, a clustered index is made by default but if an Unique key is created, a non-clustered index is created by default.

Read More..   [0 clicks]

Published under: SQL Server Interview Questions ·  ·  ·  · 


Vivek Johari
115 · 1% · 445
0
Liked
 
0
Asked



Submit

Your Comment


Sign Up or Login to post a comment.

"Difference between Unique Key and Primary key" rated 5 out of 5 by 5 readers
Difference between Unique Key and Primary key , 5.0 out of 5 based on 5 ratings
    Copyright © Rivera Informatic Private Ltd Contact us      Privacy Policy      Terms of use      Report Abuse      Advertising      [ZULU1097]