随笔 - 17, 文章 - 1, 评论 - 0, 引用 - 0
数据加载中……

Some oracle detail...

1.一个Oracle 的 Connection 最多可以创建 300 个statement
2.oracle绑定中文时一个中文字符按照3个字节计算,而且字符串最大绑定量为2000字节,串长度小于666的是安全的
      if( str.length() > 2000 || str.getBytes("utf8").length > 2000 )
       mst.setCharacterStream(i+1,new CharArrayReader(str.toCharArray()),str.length());
      else
       mst.setString(i+1,str);
3.修改oracle blob时可以先用 for update 对修改对象加锁再修改,使用时需强制转换为 oracle.sql.BLOB

posted on 2005-11-11 15:46 一直在努力 ! 阅读(158) 评论(0)  编辑  收藏 所属分类: Java


只有注册用户登录后才能发表评论。


网站导航: