我的意思就是说:怎么把String 类型转换成Clob类型 ...

解决方案 »

  1.   

    The Connection interface provides support for the creation of Blob, Clob and
    NClob objects using the methods createBlob, createClob and createNClob.
    The object that is created does not contain any data. Data may be added to the object by calling one of the setXXX methods on the Blob, Clob or NClob interface.
      

  2.   

    CLOB Clob = con.createCLOB()
    clob.setString(0,variable-String);
      

  3.   

    一定要一个con吗,,其他还有好点的方法不啊...谢谢楼上
      

  4.   

    把String转Clob?java.sql.Clob c = new javax.sql.rowset.serial.SerialClob("abc".toCharArray())
      

  5.   

    这个在JDK1.4中行不通,javax.sql.rowset编译报错,有没有高手指教下。帖子不知道还有人回复么