Difference between primary key and unique key ?

Answer Posted / omkar

In any table there can be one and only one primary key
(composite priamry key can have more than 1 column but
together conside one key only) but more than one unique
keys.

Primary key cannot accecpt null value.unique key accecpts
one or more than one null values.

primary key uniquly identifies the table but unique key is
used for uniquly identified of table as it contain one or
more than onee null.

Clustered index is created on
Primary key constraint and non clustered unique indexes is
created on Unique key constraint.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the use of consistent option in exp command.

552


What is a synonym? What are its various types?

624


how to join query for one source type is oracle another source type is sql server ?

1993


What are the benefits of ordbms?

620


Is insert autocommit in oracle?

606






What is a named program unit?

581


How to turn on or off recycle bin for the session?

610


20. Using a set operator, display the client number of all clients who have never placed an order.

1801


How to use "startup" command to start default instance?

544


Why does for update in oracle 8 cause an ora-01002 error?

550


How do I uninstall oracle client from windows?

538


How would you best determine why your MVIEW couldnt FAST REFRESH?

1438


What is a trigger and what are its types?

615


i have a question here... As of my knowledge, when we apply an index (b-tree)on a column, internally it arranges the data in b-tree format and do the fetching process correspondingly... and my quetion is... How a bit-map index arranges the data internally when applied on a column?IS it in b-tree format or whatelse?

1472


How to list all tables in your schema?

611