I implemented a function that returns clob data-type, and I would like to print the result in DBMS Output. Unfortunately, I am getting
The following procedure will better:
PROCEDURE print_clob( p_clob in clob ) IS v_offset number default 1; v_chunk_size number := 255; BEGIN LOOP EXIT when v_offset > dbms_lob.getlength(p_clob); dbms_output.put( dbms_lob.substr( p_clob, v_chunk_size, v_offset ) ); v_offset := v_offset + v_chunk_size; END LOOP; DBMS_OUTPUT.NEW_LINE; END print_clob;