How do I get only the first row from a ResultSet? I know how to iterate through the entire set, but how do I get just the first row?
ResultSet
In my case the following approach works well:
ResultSet RSet = ...; RSet.next(); Integer TestType = RSet.getInt("Type");