SCJP, SCWCD
Originally posted by Anthony Smith:
I have no beef with 0, but I would just need to do a rs.getInt("COUNT") I guess. Just really wanted to know what most people do and what the standard was was if there is such a thing.
[OCP 17 book] | [OCP 11 book] | [OCA 8 book] [OCP 8 book] [Practice tests book] [Blog] [JavaRanch FAQ] [How To Ask Questions] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
Originally posted by Phillip Koebbe:
[QB]I'm not sure I understand exactly what it is you're trying to do. If you are wanting to know how many rows are in your ResultSet, you can do:
Using MySQL's Connector/J JDBC driver, that's the best I could come up with. Unless I've overlooked the obvious, I couldn't locate a rs.getCount() or rs.getRowCount().
Consider Paul's rocket mass heater. |