Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: Riddle me this Oracle riddle...
Jonathan,
I agree, but what I am implying (maybe a bit poorly) is that due to it's anchored declaration, it will NEVER be longer than 200 bytes plus 2 for the length. Initially it will still be 2 bytes plus a NULL string, unless the column (to which it is anchored to) has a default value. Also, that max 4000 is for DB columns only, for plsql it is 32767 (2^32-1).
Tom, the way oracle allocates memory for plsql variables is if the varchar2 size (declared) is 1999 bytes or less, it is stack allocated, else it is allocated from heap. So, I'd say they would manage memory better, as majority of allocation would be from stack.
In case of Robs declaration, if you assign more than 200 bytes to that variable (assuming it is a IN OUT type, otherwise you can't), I believe you will get a 6502 error.
Raj
QOTD: Any clod can have facts, but having an opinion is an art!
-- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Jamadagni, Rajendra INET: Rajendra.Jamadagni_at_espn.com 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 Wed Mar 06 2002 - 09:43:30 CST
- text/plain attachment: ESPN_Disclaimer.txt