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: Anurag Varma <avdbi_at_hotmail.com>
Date: Tue, 05 Aug 2003 21:57:00 GMT
Message-ID: <LKVXa.27506$r61.9329@news02.roc.ny>

"Hemant Shah" <shah_at_typhoon.xnet.com> wrote in message news:bgp8r3$ag1$1_at_flood.xnet.com...
>
> 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.
Max length for a varchar2 column is 4000 bytes. Max length for pl/sql varchar2 datatype is 65535 bytes.

Define column as CLOB if you need a bigger column size.

hth
Anurag Received on Tue Aug 05 2003 - 16:57:00 CDT

Original text of this message

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