出现java.sql.SQLException: After end of result set的原因
来源:互联网 发布:三星s7检查网络连接 编辑:程序博客网 时间:2024/06/05 15:37
以下只是本人在项目中遇到的一种情况:
程序片段如下:
while(rs.next()){
order=new Order();
order.setOrder_id(rs.getString(“order_id”));
if(order.getOrder_id.equals(“11”)){
order.setOrder_time(rs.getString(“order_time”));
order.setStatue(rs.getString(“state”));
order.setAccount(rs.getString(“total”));
}
}
在调试时,会发现在if条件后面的获值会出现:after end of resultSet
解决办法:先获得值,在进行判断
0 0
- 出现java.sql.SQLException: After end of result set的原因
- 出现java.sql.SQLException: After end of result set的原因
- After end of result set
- "After end of result set“错误
- MYSQL 错误 After end of result set
- sql问题:java.sql.SQLException:Before start of result set
- java.sql.SQLException: Before start of result set
- java.sql.SQLException: Before start of result set
- java.sql.SQLException: Before start of result set
- java.sql.SQLException: Before start of result set
- java.sql.SQLException: Before start of result set
- java.sql.SQLException: Before start of result set
- java.sql.SQLException: Before start of result set
- 解决 java.sql.SQLException: Before start of result set
- java.sql.SQLException: Before start of result set
- java.sql.SQLException: Before start of result set解决方法
- java.sql.SQLException: Before start of result set错误
- java.sql.SQLException: Before start of result set
- 再见,旧博客!你好,新博客
- hihocoder 网易互娱在线笔试第二场 一起消消毒问题的解答
- 数据结构与算法学习04:双向链表
- ORA-12704:字符集不匹配
- retrofit的使用
- 出现java.sql.SQLException: After end of result set的原因
- ACM大数阶乘问题
- The 13th Zhejiang Provincial Collegiate Programming Contest (杂谈)
- JS中六种数据类型(四)——Number
- 蓝桥杯历届试题 错误票据
- IPython和Jupyter Notebook 简介
- web容器中web.xml中Servlet、Filter、context-param、listener的加载顺序
- 透视变换和仿射变换(下)
- RTP类型和时间戳