Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

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());
      }
Source by javarevisited.blogspot.com #
 
PREVIOUS NEXT
Tagged: #check #rs #null
ADD COMMENT
Topic
Name
5+8 =