当前位置:网站首页>访问数据库的时候出现错误 Operation not allowed for a result set of type ResultSet.TYPE_FORWARD_ONLY.详解
访问数据库的时候出现错误 Operation not allowed for a result set of type ResultSet.TYPE_FORWARD_ONLY.详解
2022-04-23 06:33:00 【Protinx】
问题描述:
访问数据库的时候出现错误 Operation not allowed for a result set of type ResultSet.TYPE_FORWARD_ONLY.
解决方法:
在创建statement时这样创建:
Statement stmt = conn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE);
好了,问题就解决了哈
版权声明
本文为[Protinx]所创,转载请带上原文链接,感谢
https://blog.csdn.net/Protinx/article/details/124349289
边栏推荐
- Ribbon启动流程
- 第七章 资产减值
- A programmer who works four hours a day
- Intranet security attack and defense: a practical guide to penetration testing (6): domain controller security
- 国基北盛-openstack-容器云-环境搭建
- Cloud computing skills competition -- the first part of openstack private cloud environment
- Essays (updated from time to time)
- 【编程实践/嵌入式比赛】嵌入式比赛学习记录(二):基于TCP的图片流传输
- KCD_EXCEL_OLE_TO_INT_CONVERT报错SY-subrc = 2
- Complete learning from scratch, machine learning and deep learning, including theory and code implementation, mainly using scikit and mxnet, and some practices (on kaggle)
猜你喜欢
STO With Billing 跨公司库存转储退货
内网渗透系列:内网隧道之dns2tcp
《内网安全攻防:渗透测试实战指南》读书笔记(八):权限维持分析及防御
Chapter V investment real estate
云计算技能大赛 -- openstack私有云环境 第一部分
When using flash, the code ends automatically without an error, the connection cannot be maintained, and the URL cannot be accessed.
內網滲透系列:內網隧道之icmpsh
Robust and Efficient Quadrotor Trajectory Generation for Fast Autonomous Flight
ABAP ALV显示金额与导出金额不一致
Intranet penetration series: ICMP of Intranet tunnel_ Tran
随机推荐
sentinel集成nacos动态更新数据原理
Interview learning route
《内网安全攻防:渗透测试实战指南》读书笔记(五):域内横向移动分析及防御
The projection vector of a vector to a plane
TA notes of Zhuang understand (VII) < Lambert + Phong + shadow + 3evcolor + Ao >
strcat()、strcpy()、strcmp()、strlen()
攻防世界MISC刷题1-50
Intranet penetration series: dnscat2 of Intranet tunnel
MySQL--锁的奥秘--数据怎么锁
Using lambda expression to solve the problem of C file name sorting (whether it is 100 or 11)
Redis事务实现乐观锁原理
Expression related to month, year and day in SVG
云计算技能大赛 -- openstack私有云环境 第二部分
VBA appelle SAP RFC pour réaliser la lecture et l'écriture des données
Analysis of Nacos source code
strcat()、strcpy()、strcmp()、strlen()
Mysql database backup and recovery under Linux (full + incremental)
Online Safe Trajectory Generation For Quadrotors Using Fast Marching Method and Bernstein Basis Poly
Houdini流体>>粒子流体导出到unity笔记
内网渗透系列:内网隧道之dns2tcp