Difference between primary key and unique key ?

Answer Posted / laxman k

1) Primary key can not accept null values, but unique can
accept null values.

2) only one primary key have in a table but max 249 unique
in a table

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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?

1482


What is columnar storage what is the advantage?

558


candidate key is subset of super key but not vice-verse explain

1588


List out the difference between commit, rollback, and savepoint?

632


How to bring a tablespace online?

530






What is tns entry?

643


Is there any way to find out when one specific table/view/M-view is used last time. i.e. when one specific object is used in any SELECT statement.

876


What is a table index in oracle?

654


22. Display the order number, number of lines in the order, total number of items and total value for all orders that have a total value greater than $100

1619


does the query needs a hint to access a materialized view?

1482


How to create a table index in oracle?

667


What is the best way to do multi-row insert in oracle?

569


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


How to specify default values in insert statement using oracle?

576


What is merge in oracle?

576