Forums Register Login

How to get the number of rows in a ResultSet

+Pie Number of slices to send: Send
Hello,
I'm an intern and I'm trying to get the number of rows from result set in oracle using rs.last() and rs.beforeFirst() methods but I got an error. Could Below is my sample code:


When I run the code I do have the following ERROR Message:



Please could any body Help me out here to figure out how to correct this
OR a possible suggestion?
Any Help would be highly apprecited.
+Pie Number of slices to send: Send
stmt = con.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY)
[ May 25, 2005: Message edited by: Jack Ryan ]
rubbery bacon. rubbery tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 8512 times.
Similar Threads
SQLException: invalid arguments in call??
Result set type
Scrollable Result Sets
rs.beforeFirst() exception
PROBLEMS IN CONNECTING TO ORACLE
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 01:28:56.