仅在从 rs.getString 1 选择结果后,我该怎么做才能在下一行显示 rs.getString2 ?
Statement statement = con.createStatement();
ResultSet rs = statement.executeQuery("select * from state");
while ( rs.next() ){
System.out.println(rs.getString(1) + " " +rs.getString(2));