Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: How long is long enough for primary key ?

Re: How long is long enough for primary key ?

From: EdStevens <quetico_man_at_yahoo.com>
Date: 9 Oct 2006 06:03:46 -0700
Message-ID: <1160399026.196342.299990@m7g2000cwm.googlegroups.com>

krislioe_at_gmail.com wrote:
> Hi,
> Thank you for your response.
>
> > why not use that for PK?
> >Adding an extra index (PK + UK) will
> >cause extra overhead on inserts, which
> >will affect performance negatively.
>
> I don't use PORef as PK , because the user should be able to change it.
> That is the reason.
>
> I have no other choice but using PK+UK, do I ?
>
> Thank you,
> xtanto
>

<snip>

Interesting. If the PORef is user (customer?) supplied, and you define it as unique, how do you guarantee that customer "A" doesn't supply the same PO# as customer "B"? Received on Mon Oct 09 2006 - 08:03:46 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US