Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: VARCHAR2 greater than 4K?

Re: VARCHAR2 greater than 4K?

From: Hemant Shah <shah_at_typhoon.xnet.com>
Date: Wed, 6 Aug 2003 14:22:05 +0000 (UTC)
Message-ID: <bgr2ud$38i$2@flood.xnet.com>


While stranded on information super highway Daniel Morgan wrote:
:)Hemant Shah wrote:
:)
:)>Folks,
:)>
:)> I was reading Chapter 4 of Pro*C/C++ Precompiler Programmer's Guide. In it
:)> they say the Oracle Internal Datatype VARCHAR2 must be less than 4000 bytes
:)> (page 4-2), and Oracle external Datatype VARCHAR2 must be less than 65535
:)> bytes (page 4-4).
:)>
:)> How can I define a VARCHAR2 column greater than 4000 bytes?
:)>
:)> When I try to create table using PL/SQL I get following error:
:)>
:)> ORA-00910: specified length too long for its datatype
:)>
:)>
:)>
:)>
:)>
:)You can't. The storage data type for strings longer than 4K is CLOB.
:)
:)--
:)Daniel Morgan
:)http://www.outreach.washington.edu/extinfo/certprog/oad/oad_crs.asp
:)damorgan_at_x.washington.edu
:)(replace 'x' with a 'u' to reply)
:)

Thank you all to the replies. I was confused by the diffrence between internal and external datatypes. I am still confused as to why they have two different datatypes.

-- 
Hemant Shah                           /"\  ASCII ribbon campaign
E-mail: NoJunkMailshah_at_xnet.com       \ /  --------------------- 
                                       X     against HTML mail
TO REPLY, REMOVE NoJunkMail           / \      and postings      
FROM MY E-MAIL ADDRESS.           
-----------------[DO NOT SEND UNSOLICITED BULK E-MAIL]------------------
I haven't lost my mind,                Above opinions are mine only.
it's backed up on tape somewhere.      Others can have their own.
Received on Wed Aug 06 2003 - 09:22:05 CDT

Original text of this message

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