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 need to move the pointer to the first row, before asking for data:
result.beforeFirst(); result.next(); String foundType = result.getString(1);