Ordinary hut

          人間一福地,勝似天仙宮
          posts - 61, comments - 50, trackbacks - 0, articles - 1

          jdbc關(guān)于對clob字段的方法setCharacterStream的說明

          Posted on 2009-07-03 15:43 landor 閱讀(3550) 評論(0)  編輯  收藏 所屬分類: jdbc
          http://www.herongyang.com/jdbc/SQL-Server-CLOB-setCharacterStream.html
          可以看出,如下方法
          setCharacterStream(int parameterIndex, Reader reader)
          setCharacterStream(
          int parameterIndex, Reader reader, long length)

          這兩個方法只有在jdbc4.0中才支持(jdk6)
          而只有方法
          setCharacterStream(int parameterIndex, Reader reader, int length)

          對于jdbc4.0之前的版本是支持的

          所以要 注意使用,否則會出現(xiàn)如下異常
          java.lang.AbstractMethodError: com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement.setCharacterStream(ILjava/io/Reader;J)V at...

          只有注冊用戶登錄后才能發(fā)表評論。


          網(wǎng)站導(dǎo)航:
           
          主站蜘蛛池模板: 寿阳县| 大港区| 商都县| 衡阳县| 江孜县| 临桂县| 铜鼓县| 安宁市| 忻城县| 南投县| 广饶县| 浏阳市| 贵溪市| 九江市| 太湖县| 开平市| 阆中市| 长顺县| 治县。| 绥芬河市| 隆昌县| 盐津县| 南康市| 调兵山市| 吕梁市| 岳普湖县| 达尔| 德安县| 泽库县| 江油市| 兰溪市| 古交市| 鹤庆县| 靖宇县| 辰溪县| 葫芦岛市| 汤阴县| 石嘴山市| 淮安市| 桐梓县| 乌拉特中旗|