I want to select the maximum line number from my database \"Logs\" and store it in a variable m.
m
Here\'s my code:
ResultSet rs
You can convert this to use a simple if statement instead.
if
if(rs.next()) { // other code here }
You would use while when you have more than one row to bring back.
while