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: Winnie Liu <hkitty_at_earthlink.net>
Date: Tue, 16 May 2000 07:42:14 -0700
Message-Id: <10499.105741@fatcity.com>


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-----
From: root_at_fatcity.com [mailto:root_at_fatcity.com]On Behalf Of Colin.Shaw_at_phs.com
Sent: Monday, May 15, 2000 9:28 PM
To: Multiple recipients of list ORACLE-L Subject: RE: Primary key type selection

>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
Received on Tue May 16 2000 - 09:42:14 CDT

Original text of this message

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