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: varchar2(4000)

Re: varchar2(4000)

From: Priyanka Deswal <pdeswal_at_velos.ssind.com>
Date: Fri, 18 Aug 2000 14:32:39 +0530
Message-Id: <10593.114937@fatcity.com>


Rahul,

Whats wrong in it ?? . Limit for datatype varchar2 is 4000 . If you exceed 4000 only then oracle will give an error message.It can be equal to 4000 but not more than that .

Priyanka.
----- Original Message -----
From: Rahul <rahul_at_ratelindo.co.id>
To: Multiple recipients of list ORACLE-L <ORACLE-L_at_fatcity.com> Sent: Friday, August 18, 2000 11:24
Subject: varchar2(4000)

> List,
> oracle does not returns any error when trying to insert a value
> larger than 4000 in a varchar2 column.!
> why ?
>
> SQL> create table test (col1 varchar2(4000));
>
> Table created.
> SQL> insert into test values(rpad('rahul',4001,'x'));
>
> 1 row created.
>
> SQL> select vsize(col1) from test;
>
> VSIZE(col1)
> ------------
> 4000
>
>
> TIA
>
> Rahul
>
> --
> Author: Rahul
> INET: rahul_at_ratelindo.co.id
>
> 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 Fri Aug 18 2000 - 04:02:39 CDT

Original text of this message

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