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 can you use check constraints for self referential integrity?

534


Explain overloading. Can functions be overloaded?

583


What is translate in oracle?

633


Is truncate autocommit in oracle?

653


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?

946






What are the different types of failures that occur in Oracle database?

615


Explain integrity constraint?

656


what are bitmap indexes? How does they work?

1729


What is the difference between formal parameters and actual parameters?

557


What is data block in Oracle?

632


what is the difference between substr and instr function in oracle?

595


How to name query output columns in oracle?

701


How to fetch the row which has the max value for a column?

552


What is concurrency in oracle?

553


Can we store images in oracle database?

566