我是靠谱客的博主 等待牛排,这篇文章主要介绍【发际线大作战】JDBC-Operation not allowed for a result set of type ResultSet.TYPE_FORWORWARD_ONLY.,现在分享给大家,希望可以做个参考。

改为“PreparedStatement pstmt=conn.prepareStatement(“select* from bbsmsg”,ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_READ_ONLY);”

复制代码
1
2
3
4
5
Connection conn =DriverManager.getConnection(uri,username,password); PreparedStatement pstmt=conn.prepareStatement("select* from bbsmsg",ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_READ_ONLY); /* String sql="select* from bbsmsg"; */ ResultSet rs=pstmt.executeQuery();

最后

以上就是等待牛排最近收集整理的关于【发际线大作战】JDBC-Operation not allowed for a result set of type ResultSet.TYPE_FORWORWARD_ONLY.的全部内容,更多相关【发际线大作战】JDBC-Operation内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(64)

评论列表共有 0 条评论

立即
投稿
返回
顶部