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: Daniel Morgan <damorgan_at_exxesolutions.com>
Date: Tue, 05 Aug 2003 16:48:47 -0700
Message-ID: <1060127450.665142@yasure>


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)
Received on Tue Aug 05 2003 - 18:48:47 CDT

Original text of this message

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