Difference between primary key and unique key ?

Answer Posted / anand b

Primary Key : Is an identity of a row, Only one primary key per table, No duplicate values allowed, & No NULL values are allowed.

Unique Key : Its values are unique, It can contain any number of NULL values unless combination is going to be unique.

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to assign values to variables?

580


What are the restrictions on external table columns?

552


How many types of tables are there in oracle?

576


Select all the employees who were hired in last 2 years and who works in dept where max managers are working.

2457


How to store pictures on to the database?

532






How to loop through data rows in the implicit cursor?

543


What is a tns service name?

536


Explain cascading triggers.

574


What are the different types of modules in oracle forms?

564


Why is oracle so popular?

561


What are the execution control statements in oracle?

606


How can Oracle users be audited?

610


How to use an explicit cursor without open statements?

616


How many objectname will be created for a single table drop function? Why 'flashback' query giving error "ORA-38312: original name is used by an existing object" while getting the table?

1807


What is catalog in Oracle?

654