I\'m having trouble getting data from a ResultSet object. Here is my code:
String sql = \"SELECT type FROM node WHERE nid = ?\"; PreparedStatement pr
You have to do a result.next() before you can access the result. It's a very common idiom to do
ResultSet rs = stmt.executeQuery(); while (rs.next()) { int foo = rs.getInt(1); ... }