关于oracle数据插入问题,请大侠们指点~! 请问如何将一个字符串插入到oracle.sql.BLOB类型里面去 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 可以用PreparedStatement的setBytes(int,字符串.getBytes())试试 小弟才开始用oracle能不能把原码贴出来啊 try{ Connetion conn=DriverManager.getConnection(url,user,pwd); PreparedStatement psm=conn.prepareStatement("insert into table values(?)"); psm.setBytes(1,"字符串".getBytes()); psm.executeUpdate(); conn.commit(); psm.close(); conn.close();} catch(SQLException e) { e.printStackTrace();} 就写了一个字段,你试试吧 今天遇到一个非常奇怪的问题,欢迎大神来解答。 spring mvc中实现多文件上传 hibernate连接MySQL进行查询的问题 各位大哥大姐 救救小弟呀~~~~~ 取得浏览器地址栏地址问题 请各位知道二级联动菜单问题 关于相对与绝对路径的问题?请高手指点,在线等 JSP解析XML数据 在weblogic中如何使用<jsp:useBean...../> 调用javabean中的一个添加数据的函数出这样的错误。 关于Session监听 eclipse3.1.1+jakarta-tomcat-5.0.28 运行出错,新手
Connetion conn=DriverManager.getConnection(url,user,pwd);
PreparedStatement psm=conn.prepareStatement("insert into table values(?)");
psm.setBytes(1,"字符串".getBytes());
psm.executeUpdate();
conn.commit();
psm.close();
conn.close();
} catch(SQLException e) {
e.printStackTrace();
}
就写了一个字段,你试试吧