Jan 22, 2002 #1 yunomac Technical User Jan 21, 2002 1 US Is there an Oracle function which will convert a Clob to Varchar? Is this possible to do? Thanks for your time.
Is there an Oracle function which will convert a Clob to Varchar? Is this possible to do? Thanks for your time.
Jan 23, 2002 #2 JamesGordon Programmer Jan 14, 2002 70 GB create table t1(c1 clob); insert into t1 values('abcdefghijklmnopqrstuvwxyz'); set serverout on declare c_lob clob; v_txt varchar2(4000); begin select c1 into c_lob from t1; v_txt := dbms_lob.substr(c_lob, 4000, 1); dbms_output.put_line(v_txt); end; / Will produce a line with the alphabet insert into t1 above. Upvote 0 Downvote
create table t1(c1 clob); insert into t1 values('abcdefghijklmnopqrstuvwxyz'); set serverout on declare c_lob clob; v_txt varchar2(4000); begin select c1 into c_lob from t1; v_txt := dbms_lob.substr(c_lob, 4000, 1); dbms_output.put_line(v_txt); end; / Will produce a line with the alphabet insert into t1 above.