Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

What are advantage of having primary key

spur230Apr 20 2012 — edited Apr 20 2012
I have a error logging table without a primary key. It does not have any candidate key. If we decide to add a primary key, I would need addition column to create surragate key based primary key.

In what conditions is it ok not to have primary key?

I know primary key is needed to uniquely identify records, for scalablity to have foreign key constraint, index. Apart from these, what are other compelling reasons to have primary key in a table ?

Thank you for your time.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 18 2012
Added on Apr 20 2012
6 comments
857 views