String query = "SELECT COUNT(*) AS count FROM table1";
ResultSet rs = DBConnection.executeQuery(query);
The above code works fine; however:
long count = rs.getLong("count");
This wont work, it throws SQLException. How should I get data from the ResultSet?
should work from what I can recall.
EDIT:
of course: