Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: VARCHAR2 greater than 4K?
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