Difference between primary key and unique key ?

Answer Posted / deen dayal sharma

1. PRIMARY KEY & UNIQUE KEY both uniquely identity of each
row in a table.
2. BOTH keys will not contain repeated value.
3. One table may have more than one Unique Key Constraint But
it should have only one Primary Key Constraint column.
4. 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 the difference between functional dependecy and multilevel dependency?

2199


Can we create database in oracle using command line ?

787


In what script is snap$ created? In what script is the scott/tiger schema created?

2446


Explain integrity constraints?

851


How to export your connection information to a file?

780


What are the set operators union, union all, minus & intersect meant to do?

744


How to drop an index in oracle?

789


In Oracle Clinical 4.5.0, can the VIEW_TEMPLATE_ID column in DATA_EXTRACT_VIEWS table contain NULL value?

2103


How to convert a string to a date in oracle database?

761


What is a read only transaction in oracle?

792


What is open database communication (odbc) in oracle?

705


Can we call procedure inside function in oracle?

787


how may join possible between (requisition with purchase order)

1918


What are the uses of linked server and explain it in detail?

793


What is a database schema in oracle?

834