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

Home -> Community -> Usenet -> c.d.o.tools -> Re: NUMBER versa CHAR as a primary key

Re: NUMBER versa CHAR as a primary key

From: Connor McDonald <connor_mcdonald_at_yahoo.com>
Date: 2000/07/27
Message-ID: <39800D4F.7DB8@yahoo.com>#1/1

Janusz Gryczman wrote:
>
> Is it true, that using NUMBER Oracle type versa CHAR for a primary key
> improves performance ?
> If yes what is the ratio ? Is it really significant ?
> What about if primary key has a type VARCHAR ?
> Really appreciate answer to this question.

I'll think you'll find there is (in measurable terms) no difference...

However, there is often a case for the use of synthetic keys (eg sequence numbers) so that 'keys' can be updated if required...

HTH

-- 
===========================================
Connor McDonald
http://www.oracledba.co.uk

We are born naked, wet and hungry...then things get worse
Received on Thu Jul 27 2000 - 00:00:00 CDT

Original text of this message

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