rs returns a boolean true / false, so if there is more data it returns a
true, if not it returns a false. Opps...Sorry my name is Tom not Zulfi :-)

-----Original Message-----
From: A mailing list for discussion about Sun Microsystem's Java Servlet
API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of
P.Yesudason
Sent: Wednesday, April 26, 2000 12:56 AM
To: [EMAIL PROTECTED]
Subject: Re: JDBC-ODBC


Zulfi,
If rs is null ., what will happen?
Yesudas

zulfi wrote:

> if(rs.next())
> {
>     data in resultset...
> }
> else
>     no data...
>
> thanx
> zulfi
>
> ----- Original Message -----
> From: Pavan Sulibhavi <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, April 26, 2000 12:11 PM
> Subject: JDBC-ODBC
>
> > Hi,
> > I'm getting the invalid cursor state error message (SQLException). well,
> > this is because the returned ResultSet contains no data, and i'm trying
to
> > access it. How to find out whether the ResultSet  returned by method -
> > executeQuery(query) contains any data at all ??
> >
> > PLEASE reply as soon as possible..
> >
> > thanks a lot!
> > Pavan
> >
> >
>
___________________________________________________________________________
> > 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

--
I am free and have a destination too far,
                      .... I will keep flying.

___________________________________________________________________________
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

Reply via email to