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: CLOBs storage vs Varchar storage

Re: CLOBs storage vs Varchar storage

From: Jonathan Gennick <jonathan_at_gennick.com>
Date: Mon, 13 Aug 2001 11:20:25 -0700
Message-ID: <F001.00369030.20010813110556@fatcity.com>

Monday, August 13, 2001, 1:50:28 PM, Clark wrote:
>> CLOBs vs VARCHAR. If a varchar datatype is not completely used it will
>> not allocate storage for what is was defined.
>> Does a CLOB data type use entire storage if not completely used?

No. If you think about it long enough, you'll realize that could never be the case. When you define a CLOB, you don't specify a maximum length as you do when you define a VARCHAR2. The max length of any CLOB column, therefore, is the max length of a CLOB period, which is 4 gigabytes. A CLOB column would not be of much use if every small value that you put into it took up an entire 4 gigs. Some simple testing will show you that is not the case.

Best regards,

Jonathan Gennick
mailto:jonathan_at_gennick.com * 906.387.1698 http://Gennick.com * http://MichiganWaterfalls.com * http://MetalDrums.org

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Jonathan Gennick
  INET: jonathan_at_gennick.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 Aug 13 2001 - 13:20:25 CDT

Original text of this message

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