Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Is a primary key always desired?
On Fri, 03 Oct 2003 21:08:34 GMT, "Randy Harris" <randy_at_SpamFree.com>
wrote:
>Should every table in an Oracle database have a Primary Key? What about a
>very small table that is used for a very short list of values?
>
A table is an implementation of a set. According to relationel theory
sets *can't* have duplicates.
If you leave out the primary key you won't have any mechanisms to
protect you against someone, including yourself, entering a duplicate.
Experience learns that your org is going to pay for this.
-- Sybrand Bakker, Senior Oracle DBAReceived on Fri Oct 03 2003 - 16:27:08 CDT
![]() |
![]() |