Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: Selecting a Primary Key for the table.
I assume you mean 'single-column' primary key and 'multiple-column' primary key.
There have been two historical arguments against using surrogate primary keys - i.e. generating unique meaningless numbers to replace primary keys:
However, I'm always willing to compromise - and whilst I strongly avoid synthetic keys, I have been known to suggest that am partially synthetic key, to connect child rows back to their parent can be effect on both space and performance.
-- Jonathan Lewis http://www.jlcomp.demon.co.uk Next Seminar - UK, April 3rd - 5th http://www.jlcomp.demon.co.uk/seminar.html Host to The Co-Operative Oracle Users' FAQ http://www.jlcomp.demon.co.uk/faq/ind_faq.html Author of: Practical Oracle 8i: Building Efficient Databases Ram wrote in message ...Received on Wed Mar 06 2002 - 06:39:34 CST
>I have a question regarding selecting a primary key for the table.
>Is it a good design to have multiple primary keys as compared to a one
>primary key auto generated in pre-insert trigger from a sequence and
>creating unique constraints on columns that need to be unique.
>
>Oracle documentation says try a stick with single primary key as far
>as possible. Our DBA's seem to have an alternative point of view. I'd
>like to hear from other DBA's out there.
>
>
>TIA - Ram
![]() |
![]() |