[英]Updating selected rows JDBC RowSet
I want to update a record in a database using JDBC RowSet. 我想使用JDBC RowSet更新数据库中的记录。 I first get the required record and then I use updateRow() to update. 我首先获得所需的记录,然后使用updateRow()进行更新。 But it doesn't get reflected on the database. 但是它并没有反映在数据库中。 There are no errors reported. 没有错误报告。
rowSet.setCommand("SELECT * FROM Employee WHERE uid="+e.getUid());
rowSet.execute();
rowSet.updateString("name", e.getName());
// More update operations
rowSet.updateRow();
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.