Answers for "how to check if rs next is null"

0

how to check if rs next is null

if (rs.next() == false) {
        System.out.println("ResultSet in empty in Java");
      } else {

        do {
          String data = rs.getString("emp_name");
          System.out.println(data);
        } while (rs.next());
      }
Posted by: Guest on April-26-2020

Code answers related to "how to check if rs next is null"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language