Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: PL/SQL: character string buffer too small
Hi,
In PL/SQL, you can define varchar2 datatype to be of length 32767 (max). The limit of 4000 is when the datatype is used in table creation.
Regards
Rajagopal Venkataramany
----Original Message Follows----
From: Andreas Jung <ajung_at_sz-sb.de>
Reply-To: ORACLE-L_at_fatcity.com
To: Multiple recipients of list ORACLE-L <ORACLE-L_at_fatcity.com>
Subject: PL/SQL: character string buffer too small
Date: Tue, 23 May 2000 02:29:06 -0800
I have a PL/SQL function that returns VARCHAR2. When the size of the return string is greater than about 2000 characters I get an ORA-06502: PL/SQL: numeric or value error: character string buffer too small during the return statement.
So how should one return varchar2 strings up to 32000 bytes when this error occurs all the time ?
Andreas
-- Author: Andreas Jung INET: ajung_at_sz-sb.de 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). ________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.comReceived on Tue May 23 2000 - 21:53:47 CDT
![]() |
![]() |