Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> 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-----
From: Rajagopal Venkataramany [mailto:rajagopalvr_at_hotmail.com]
Sent: Sunday, May 14, 2000 9:14 PM
To: Multiple recipients of list ORACLE-L
Subject: Re: Primary key type selection
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).Received on Mon May 15 2000 - 22:10:58 CDT