Hello,
If you are just trying to get the number of rows returned from the query, just
replace the select clause like this:
select count(*) rowcnt from <table> where ...
If you want a result set also, just do the above first to get a row count, then
do the regular select you are trying to do.
david hall
Isaac Zinner wrote:
> Hi All !
>
> I'm trying to get row no. from a big result set (>2000 rows).
> When I try rs.absolute with a value higher than 1800~ and then rs.getRow I
> get 0.(same with negative no.)
> When I try rs.last() and then rs.getRow I still get 0 ( tried previous()
> too). However when I print the rows I do get them from
> the end correctly . How do I get the cursor to be positioned on the last
> row so I can get it's no. (with getRow) and not 0.
>
> Thanks
>
> ___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html