I have a problem with ResultSet last() function. some times it shows the correct data. in some other time it shows another result.
consider i have no data on the table, then it shows row count is 0, but some time it doesn't show any of value.
here my code:
if(rs.last()){
int rsCount = rs.getRow();
System.out.println("ResultSet Count is: "+rsCount);
}
please give me the solution for my problem.