定义的 clob 字段类型的数据,在编辑的时候只能增加文字,但不能删除原先内容中的部分文字,为什么?
解决方案 »
- oracle建立dblink的问题
- ORACLE更改密码问题。
- 关于日历的数据库设计
- 散分300,想ias904的下载地址,otn上已经没有提供下载
- 求一SQL语句如何 得到某表中某字段中指定相同行数的值?
- oracle9进行双机热备(HA)时出现问题,请大家帮忙看看...... 上一主题 | 下一主题
- data guard配置过程中ORA-01041: 内部错误,hostdef 扩展名不存在的问题
- Oracle 导出全部用户表空间数据
- 最简单的问题:如何进入oracle9i designer?
- 请过来人给些学习ORACLE的建议
- 有没有语句是重新编译存储过程的??
- 如何给select查询返回的多条记录编号
conn.setAutoCommit(false);
Statement stmt = conn.createStatement();
String strUpdate = "update news set news_title ='" + strTitle + "', " +
"news_from = '" + strFrom + "', " +
"pic_path = '" + strPath + "' where news_id=" + intNewsId;
stmt.executeUpdate(strUpdate);
String strSelect2 = "select news_id,news_content from news where news_id =" + intNewsId;
ResultSet rs = stmt.executeQuery(strSelect2);
if(rs.next())
{
oracle.sql.CLOB clobtt = (oracle.sql.CLOB)rs.getClob("news_content");
Writer wr = clobtt.getCharacterOutputStream();
wr.write(strContent);
wr.flush();
wr.close();
// clob.putString(1, strContent);
}
conn.commit();