Using Resultset in Java Program
问题 Resultset rs=stmt.executeQuery("select count(*) from feedsca group by score order by score"); Using the above java code above, am retrieving the counts of rows from the table named feedsCA. While trying to retrieving the counts using rs.getInt(1),rs.getInt(2),rs.getInt(3), I end with an error saying as below, Exception in thread "main" com.microsoft.sqlserver.jdbc.SQLServerException: The result set has no current row. at com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDriverError