Difference between primary key and unique key ?

Answer Posted / vaithianathan

primary key not accepts null value and
not allows duplicate values.
but Unique key not allows duplicate values
but it accepts ONLY ONE NULL VALUE.

only one primary key allowed per table
we can create multiple unique keys
on the table

By Default, Primary key creates Clustered Index and Unique key Creates Non Clustered Index

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

interview questions with answer for cts

2329


How do I limit the number of oracle database connections generated by weblogic server?

807


What are the attributes that are found in a cursor?

827


What are the different types of record groups in oracle? Explain each of them

775


What is oracle database client?

767


There are n numbers of flatfile of exactly same format are placed in a folder.Can we load these flatfile's data one by one to a single relational table by a single session??

1797


Explain the use of ignore option in imp command.

772


What is logical backup in oracle?

776


What do you mean by a tablespace?

772


What are the varoius components of physical database structure of oracle database?

756


What is system global area (sga) in oracle?

773


How will you write a query to get a 5th rank student from a table student_report?

1653


What is the difference between translate and replace?

802


How to use subqueries with the exists operator in oracle?

781


How can I see all tables in oracle?

734