Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: Primary key type selection
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
-- 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 mayReceived on Tue May 16 2000 - 09:42:14 CDT
![]() |
![]() |