Difference between primary key and unique key ?

Answer Posted / lucky

Primary key not accepts to null values in database, but
uniqe key accepts to the null values in database.

Each table having only one PRIMARY KEY.And my contain many
UNIQUE KEYS.
PRIMARY KEY is identity of each row. UNIQUE KEY also
identity of each row.
BOTH keys will not contain repeated value.
BUT UNIQUE KEY will contain NULL value but PRIMAY key will
not contain NULL value.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is save point in oracle database?

730


What is the data pump export utility?

647


Use of an integrity constraint is better to validate data. Explain

547


What are the restrictions on external table columns?

552


Is oracle a language?

527






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

541


How to compare dates in oracle sql?

657


How to upsert (update or insert into a table)?

540


How to create a new oracle data file?

560


what are bitmap indexes? How does they work?

1719


What is a partition in oracle?

547


What are the execution control statements in oracle?

606


What is data type in oracle?

566


Explain the use of grant option in imp command.

580


Explain view?

577