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: Data storage for Numeric data

Re: Data storage for Numeric data

From: Vladimir Begun <jester_at_whale.sunbay.crimea.ua>
Date: Fri, 15 Jun 2001 01:19:50 -0700
Message-ID: <F001.0032AF25.20010615012018@fatcity.com>

On Jun 13, 2001 at 05:01:29AM, Cale, Rick T (Richard) wrote:
>
> Hi All,
>
> If I have fields defined as NUMBER(2,0) and NUMBER(7,0) how much storage
> does Oracle used if fields are NULL or the
> fields do not use entire width.

Nothing if a field contains NULL and locates at the end of row

1 byte if if contains NULL

Max field length of NUMBER(2,0) is 3 bytes (1 byte length, 1 sign, 1 byte data)

Max field length of NUMBER(7,0) is 6 bytes (1 byte lengtj, 1 sign, 4 byte data)

-- 
Vladimir Begun               | I/O, I/O, It's off to disk I go, A bit or
http://vbegun.net/           | byte to read or write, I/O, I/O, I/O...
http://vbegun.net/wap/       | 
me_at_vbegun.net                | 
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Vladimir Begun
  INET: jester_at_whale.sunbay.crimea.ua

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 Fri Jun 15 2001 - 03:19:50 CDT

Original text of this message

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