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

Home -> Community -> Mailing Lists -> Oracle-L -> Re: Primary key type selection

Re: Primary key type selection

From: Joseph S. Testa <teci_at_oracle-dba.com>
Date: Tue, 16 May 2000 13:25:14 -0400
Message-Id: <10499.105756@fatcity.com>


Winnie, u've tested that theory that a number scan as a PK will be faster than a character scan(varchar2)?, i'd like to see the results :)

joe

Winnie Liu wrote:

> Colin,
>
> That's right. The number field occupied varies as varchar2. But still, with
> the same width, it is a lot faster to scan and match a primary key of
> numbers than a primary key with characters.
>
> Winnie :)
>
> -----Original Message-----
> Colin.Shaw_at_phs.com
> Sent: Monday, May 15, 2000 9:28 PM
> To: Multiple recipients of list ORACLE-L
>
> >A number field takes less no. of bytes than a varchar2 field.
>
> Not necessarily. A number field occupies a variable number of bytes,
> depending on its magnitude and number of digits.
>
> Colin.
>
> -----Original Message-----
> Sent: Sunday, May 14, 2000 9:14 PM
> To: Multiple recipients of list ORACLE-L
>
> Hi,
>
> The first advantage is the space saving. A number field takes less no.
> of bytes than a varchar2 field. This decrease in storage may
> positively impact performance...
>
> Regards
> Rajagopal Venkataramany
>
> ----Original Message Follows----
> Reply-To: ORACLE-L_at_fatcity.com
> To: Multiple recipients of list ORACLE-L <ORACLE-L_at_fatcity.com>
> Date: Sun, 14 May 2000 10:54:12 -0800
>
> Is there any advantages and disadvantages (performance? , ...) between
> NUMBER and VARCHAR2 for primary key column?
>
> Alex Hillman
>
> ________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
>
> --
> Author: Rajagopal Venkataramany
> INET: rajagopalvr_at_hotmail.com
>
> Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051
> San Diego, California -- Public Internet access / Mailing Lists
> --------------------------------------------------------------------
> To REMOVE yourself from this mailing list, send an E-Mail message
> to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
> the message BODY, include a line containing: UNSUB ORACLE-L
> (or the name of mailing list you want to be removed from). You may
> also send the HELP command for other information (like subscribing).
>
> --
> Author:
> INET: Colin.Shaw_at_phs.com
>
> Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051
> San Diego, California -- Public Internet access / Mailing Lists
> --------------------------------------------------------------------
> To REMOVE yourself from this mailing list, send an E-Mail message
> to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
> the message BODY, include a line containing: UNSUB ORACLE-L
> (or the name of mailing list you want to be removed from). You may
> also send the HELP command for other information (like subscribing).
>
> --
> Author: Winnie Liu
> INET: hkitty_at_earthlink.net
>
> Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051
> San Diego, California -- Public Internet access / Mailing Lists
> --------------------------------------------------------------------
> To REMOVE yourself from this mailing list, send an E-Mail message
> to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
> the message BODY, include a line containing: UNSUB ORACLE-L
> (or the name of mailing list you want to be removed from). You may
Received on Tue May 16 2000 - 12:25:14 CDT

Original text of this message

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