what may cause to throw SQLException which says ResultSet has no more data? Could any one please let me know. Thanks in advance,
posted 15 years ago
Usually this means that you are not checking the returned result of the ResultSet.next() method. It returns true if there are more elements in the ResultSet, or false if there are none. Most people use code something like:
suppose you make a object of resultset ResulSet rs and you use the code rs.next() to retrieve data from the database if rs.next() returns false then it will throw an exception Resultset has no more data.