rs.deleteRow(); 是jdbc2.0中ResultSet的方法。Statement st = connection.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_UPDATABLE);
解决方案 »
- Cannot create JDBC driver of class '' for connect URL 'null',网上搜了几个都没解决,请指点啊
- 这个函数的参数怎么设?
- java中的异常
- struts问题
- 求问:web系统如何与读码器通信.
- 数据库中插入记录问题,求助
- 请教:如何把一个\u53CD这样的16进制数,转化成一个long型,快速提供代码者马上给分!
- 高手们,本人想学JSP是不是得先学JAVA!急!
- 开发自定义tab有没有好的工具???
- resin怎么防止目录浏览?
- 100分相送,各位大虾,小弟我有一个关于SmartUpload的问题,请作答一下!
- 关于网页刷新的问题,谢谢!
Deletes the current row from this ResultSet object and from the underlying database. This method cannot be called when the cursor is on the insert row.
andrawu,你写的是什么意思呢?
ResultSet rs = st.executeQuery(sqlString); /**
* This method deletes nth Row from the result Set
*/
public void deleteNthRow(ResultSet rs,int rowNum) throws SQLException {
rs.absolute(rowNum);
rs.deleteRow();
}