Difference between primary key and unique key ?

Answer Posted / pralhad

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 ?    63 Yes 47 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is rich query?

720


What are the data types in oracle?

769


What are the different oracle database objects?

808


what are steps for interface? where is exchange rate defined in which table?

1737


How to run create database statement again?

809


What happens to the current transaction if the session is ended?

801


What do you understand by a database object? Can you list a few of them?

785


How to retrieve data from an explicit cursor?

780


What do you mean by redo log file mirroring?

750


What is the usage of control file in oracle?

824


How to shutdown your 10g xe server?

821


What do the 9i dbms_standard.sql_txt() and dbms_standard.sql_text() procedures do?

4300


How to specify default values in insert statement using oracle?

805


How to write a query with an inner join in oracle?

778


What is the difference between $oracle_base and $oracle_home?

801