Test for an empty ResultSetTag(s): JDBC
boolean found; ResultSet rs; ... // execute the query and then found = rs.next(); if (found) System.out.println("Record found"); else System.out.println("RECORD NOT FOUND");
mail_outline
Send comment, question or suggestion to howto@rgagnon.com
Send comment, question or suggestion to howto@rgagnon.com