I am having many rows in table and I ran the same query on my database which is MySql but java ResultSet is only giving the first row of the table. Here is my code.
try while(resultSet.next()) {
while(resultSet.next()) {
instead of if (resultSet.next()) {
if (resultSet.next()) {