maybe best performance is: SELECT count(aUniqueColumn)???
> -----Original Message-----
> From: Byte Code [SMTP:[EMAIL PROTECTED]]
> Sent: 11 October 1999 15:45
> To: [EMAIL PROTECTED]
> Subject: Re: Resultset in a servlet
>
> You can also execute a Select count * .
>
> -Sam
>
> Baris EFE wrote:
> >
> > Go to last record:
> > rs.last();
> > Then get the row number(size of the resultset)
> > int noOfRecords = rs.getrow();
> >
> > last() JDBC 2.0 Moves the cursor to the last row in the result set.
> > getrow() JDBC 2.0 Retrieves the current row number
> >
> > > -----Original Message-----
> > > From: Tom Kochanowicz [SMTP:[EMAIL PROTECTED]]
> > > Sent: 11 October 1999 08:30
> > > To: [EMAIL PROTECTED]
> > > Subject: Re: Resultset in a servlet
> > >
> > > Yes,
> > >
> > > Try this.
> > >
> > > while (dataResultSet.next())
> > > {
> > > ... put code here.
> > > rowCount++;
> > > }
> > > return rowCount;
> > >
> > > You may want to put this in a method you call and return the rowCount.
> > >
> > > Tom Kochanowicz
> > >
> > >
> > > -----Original Message-----
> > > From: A mailing list for discussion about Sun Microsystem's Java
> Servlet
> > > API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of
> Sunil
> > > Dua
> > > Sent: Monday, October 11, 1999 12:02 AM
> > > To: [EMAIL PROTECTED]
> > > Subject: Resultset in a servlet
> > >
> > >
> > > Hi three
> > >
> > > Is there any method through which one can get to know the no of
> records
> > > fetched by a query (in a Resulset).
> > >
> > > Regards
> > > Sunil Dua
> > >
> > >
> __________________________________________________________________________
> > > _
> > > 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
> >
> >
> __________________________________________________________________________
> _
> > 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
___________________________________________________________________________
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