本文主要是介绍Mysql:Before start of result set,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
解决方法:使用resultSet.getString()之前一定要调用resultSet.next()
ResultSet resultSet = statement1.executeQuery();while (resultSet.next()){String username1 = resultSet.getString("username");int id1 = resultSet.getInt("id");String password2 = resultSet.getString("password");String name = resultSet.getString("name");int age1 = resultSet.getInt("age");logger.info("id:{},username:{},password:{},name:{},age:{}",id1,username1,password2,name,age1);}
这篇关于Mysql:Before start of result set的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!