update t1 set txt2=to_char(txt1);这样行不行,我没有试

解决方案 »

  1.   

    楼上的不行.可以写一个过程:
    use dbms_lob.substr is one very simple way.  
    You can write plsql and use dbms_lob.read as well. 
      

  2.   

    感谢jlandzpa(ORA-00600) ,能否给出过程的代码,帮助我所举的例子中的
    表t1的txt2字段替换。请多帮助,谢谢。
      

  3.   

    --sql即可
    15:03:41 jlanzpa817>update t1 set txt2 = dbms_lob.substr(txt1,100,1);
    已更新 1 行。
    已用时间:  00: 00: 00.20
    15:03:53 jlanzpa817>commit;
    提交完成。
    已用时间:  00: 00: 00.00
    15:03:55 jlanzpa817>select * from t1;ID   TXT1         TXT2
     1 CLOB TEST  CLOB TEST已用时间:  00: 00: 00.30