Difference between primary key and unique key ?

Answer Posted / manoj routh

Both primary key and unique enforce uniqueness of the column
on which they are defined. But by default primary key
creates a clustered index on the column, where are unique
creates a nonclustered index by default. Another major
difference is that, primary key doesn't allow NULLs, but
unique key allows one NULL only.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

I have some query regarding Report generation from Oracle Apps "PO module". I have to generate a report where table columns are as below: Vendor_name Invoice No PO Number Item_Quantity Value of Goods Date of Shipping Name_of_the_transport Date_of_receipt_issued. Now my questions is :from which table/column I can get the information of "Name_of_the_transport" column. Thanks in advance.

2888


What are the different types of synonyms?

599


State any two functions of oracle?

636


What is oracle database client?

557


What is a procedure in oracle?

618






Other than making use of the statspack utility, what would you check when you are monitoring or running a health check on an Oracle 8i or 9i database?

1515


What are the extensions used by oracle reports?

575


What are the restrictions on external table columns?

552


How to use "out" parameter properly?

634


What do you mean by redo log file mirroring?

561


Which is faster join or subquery in oracle?

537


How to retrieve the count of updated rows?

576


How to rename a tablespace in oracle?

619


What is oracle latest version?

586


How are extents allocated to a segment?

582