I won't like to get the record number of resultset using: int i=0; while(rs.next()){ i++; } or this: ResultSet rs; int count; �� rs.last(); count = rs.getRow(); �� have any good idea? thanks a lot! Winny
be a good java programmer
F A H A D
Greenhorn
Joined: Aug 16, 2003
Posts: 13
posted
0
i don't what u r trying to ask....u want to know on which row of Database u r resultset is on...RIGHT....if this the case the int i=0; int countRow=0; while (rs.next()) System.out.println(countRow); i++; } hope this helps.... Bye
"Zero Degree", Your display name does not comply to the JavaRanch naming standards. You can view the rules here Please change your display name. Accounts with invalid display names get deleted. Also, please try to reduce your usage of contractions such as u, r, ur etc. Many of the Ranch users do not have English as their primary language, and it is a good idea try to make communication easier, not harder. thanks, Dave.
Winny Zhang
Greenhorn
Joined: Aug 22, 2003
Posts: 2
posted
0
I mean I hope to get the record number of the resultset,and don't use that two ways .
Thanks! My english is not very good .sorry Winny
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.
subject: how can I get the record number of resultset?