Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: VARCHAR2 greater than 4K?
"Anurag Varma" <avdbi_at_hotmail.com> wrote in message
news:LKVXa.27506$r61.9329_at_news02.roc.ny...
> Max length for a varchar2 column is 4000 bytes.
OK. They can motivate that by storage design.
> Max length for pl/sql varchar2 datatype is 65535 bytes.
But I wonder how do they motivate this limitation, given that any decent language have a type String of unrestricted length (no string attached;-) Are they still living in 16 bit world?
> Define column as CLOB if you need a bigger column size.
Three datatypes for a character string? That's a little bit too much.
Here is small example demonstrating how ridiculous LOB implementation is:
SQL> select substr('hello world', 1, 4) from dual;
SUBS
SQL> select dbms_lob.substr('hello world', 1, 4) from dual;
DBMS_LOB.SUBSTR('HELLOWORLD',1,4)