修改ResultSet数据

更新时间:2023-05-29 05:15:50 阅读: 评论:0

修改ResultSet数据SQL语句:
lect * from usrpsw limit 0, 5
表格结构是
res是ResultSet的对象
stmt = ateStatement(ResultSet.TYPE_SCROLL_SENSITIVE,苹果九宫格怎么设置
ResultSet.CONCUR_UPDATABLE);
res = uteQuery(sql);
res.first();
res.updateString( 1,  "PR-10004 ");
res.updateRow();自救方法
汪三贵结果如图:
参考:
try {
// Create an updatable result t
Statement stmt = ateStatement(
云青青兮欲雨
几何图形画ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_UPDATABLE);
ResultSet resultSet = uteQuery("SELECT * FROM my_table");
// Move cursor to the row to update
好用护肤品resultSet.first();
// Update the value of column col_string on that row
resultSet.updateString("col_string", "new data");
// Update the row; if auto-commit is enabled, update is committed
resultSet.updateRow();
如何画玫瑰花>家长意见和建议怎么写} catch (SQLException e) {
}

本文发布于:2023-05-29 05:15:50,感谢您对本站的认可!

本文链接:https://www.wtabcd.cn/fanwen/fan/89/945114.html

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

标签:意见   家长   语句   表格
相关文章
留言与评论(共有 0 条评论)
   
验证码:
推荐文章
排行榜
Copyright ©2019-2022 Comsenz Inc.Powered by © 专利检索| 网站地图