Use ResultSetMetadata Class to get all these. No need to use
ScrollableResultSet ( an addition to JDBC recently) or to read/write file.


> ----------
> From:         Teng, Nan[SMTP:[EMAIL PROTECTED]]
> Reply To:     A mailing list for discussion about Sun Microsystem's Java
> Servlet API Technology.
> Sent:         Monday, November 20, 2000 4:59 AM
> To:   [EMAIL PROTECTED]
> Subject:      FW: Result Set
>
> First, read the file into memory.
> Then use the .print or .println to the destination.
>
> -----Original Message-----
> From: kumar jaya [mailto:[EMAIL PROTECTED]]
> Sent: 2000?11?20? 13:14
> To: [EMAIL PROTECTED]
> Subject: Re: Result Set
>
>
> hi jimmy,
>
>   with the ordinary resultset u cant find the no of
> rows in u'r resultset. for getting this u have to go
> for scrollable resultset so that u can find the
> recordcount and u can move forward & backward also.
>
>
>    ( i need one help )
> i want to print a file using java.i have searched for
> java.awt.print but i dont know how to use it to print
> a file .
> thanx in advance
> jayakumar
>
>
>
>
>
>
>
>
>
> --- Jimmy Kurian <[EMAIL PROTECTED]> wrote:
> > Hi,
> > Is there any function to know how many rows are
> > there in a Resultset ?
> > ie I want to know how many rows I got in a resultset
> > when I executed  a
> > "Select" statement. ( I don't want to do another
> > "Select count(*) ..."
> > statement because I'm making another access to the
> > database)
> > Thanks in advance
> > Jimmy
> >
> >
> __________________________________________________________________________
> _
> > 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
>
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Calendar - Get organized for the holidays!
> http://calendar.yahoo.com/
>
> __________________________________________________________________________
> _
> 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
>
>
>
-------------------------------------------------------------------
CONFIDENTIALITY/PROPRIETARY NOTE.
The document accompanying  this electronic transmission
contains information from Maruti Udyog Limited, which is
confidential, proprietary or copyrighted and is intended
solely for the use of the individual or entity named on
this transmission.If you are not the intended recipient,
you are notified that disclosing, copying, distributing or
taking any action in reliance on the contents of this
information is strictly prohibited.This prohibition includes,
without limitation, displaying this transmission or any portion
thereof, on any public bulletin board.If you are not the
intended recipient of this document, please return this
document to Maruti Udyog Limited immediately.
-------------------------------------------------------------------
"Please visit us at http://www.marutiudyog.com".

___________________________________________________________________________
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

Reply via email to