tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Luis Andrei Cobo" <va...@megapathdsl.net>
Subject Quick JDBC Question
Date Sun, 16 Jul 2000 06:07:02 GMT
How can I tell if I resultset returns 0 rows?

i try this:

if(rs.next()) {
	while(rs.next()) {
		blah blah
	}
}
else {
	blah blah
	}

yet, when I do that it skips over the first row entirely.

should I include a count column in the ResultSet perhaps?

Luis

Mime
View raw message