jdbc错误 5
Connectionconn=ConnectionFactory.getConnection();stmt.setInt(1,158);rs=stmt.executeQu...
Connection conn = ConnectionFactory.getConnection();
stmt.setInt(1, 158);
rs = stmt.executeQuery();
System.out.println(rs.findColumn("id"));
System.out.println(rs.getInt("id"));
at com.mysql.jdbc.ResultSetImpl.checkRowPos(ResultSetImpl.java:855)
at com.mysql.jdbc.ResultSetImpl.getInt(ResultSetImpl.java:2710)
at com.mysql.jdbc.ResultSetImpl.getInt(ResultSetImpl.java:2851) 展开
stmt.setInt(1, 158);
rs = stmt.executeQuery();
System.out.println(rs.findColumn("id"));
System.out.println(rs.getInt("id"));
at com.mysql.jdbc.ResultSetImpl.checkRowPos(ResultSetImpl.java:855)
at com.mysql.jdbc.ResultSetImpl.getInt(ResultSetImpl.java:2710)
at com.mysql.jdbc.ResultSetImpl.getInt(ResultSetImpl.java:2851) 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询