Stew Stryker
Member³
I'm hoping this is just a problem in my setup, but I can't find it.
I'm trying to convert a CLOB to VARCHAR2 in a SQL window query. But if the note has more than 4000 characters, I get the error "character string buffer is too small". Yet if I don't convert the CLOB, it works fine. I thought the limit for VARCHAR2 was 32k? The record I'm trying to get has a note length of 4632.
Thanks for straightening me out! :-/
I'm trying to convert a CLOB to VARCHAR2 in a SQL window query. But if the note has more than 4000 characters, I get the error "character string buffer is too small". Yet if I don't convert the CLOB, it works fine. I thought the limit for VARCHAR2 was 32k? The record I'm trying to get has a note length of 4632.
Code:
SELECT note_id, dbms_lob.substr(note_text, 4200, 1) note_text, dbms_lob.getlength(note_text) len
FROM notes
WHERE note_id = 25787;