Difference between primary key and unique key ?

Answer Posted / sunil upadhyay

the basic difference is that primary key can not have null
value whereas Unique key can have null values.two null
value are not same.One table may have more than one Unique
Key Constraint
columns, but should have only one Primary Key Constraint
column.

Is This Answer Correct ?    88 Yes 51 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain view?

776


How many categories of data types in oracle?

769


What is oracle datasource?

735


What are the built-in functions used for sending Parameters to forms ?

3060


What is a tns file?

707


Give the different types of rollback segments.

775


What is the difference between translate and replace in oracle?

889


What is sequence?

807


Can any one explain me when i execute below query.. select months_between('07-JUL-12','10-FEB-12') from dual; Out put:- 4.90322581 How oracle calculate?

1130


What is a table index in oracle?

825


An automatic job running via DBMS_JOB has failedKnowing only that its failed, how do you approach troubleshooting this issue?

1801


How many types of cluster table in Oracle?

772


What are the system predefined user roles?

764


What is pragma autonomous transaction in oracle?

740


What is MTTR advisor in Oracle?

813