----- Original Message -----
From: Rusmawidya Ustati <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, March 31, 2000 1:23 PM
Subject: Check the JDBC result value
> Hi,
>
> I have a question about a database to servlet connection.
> Does anyone know how to check if a query returns a null value in the
> ResultSet.
> Thanks.
>
Try something like this:
result = statement.executeQuery("select ...");
if (result.next()) {
// query returns value
} else {
// query returns null
}
Vyacheslav Pedak
___________________________________________________________________________
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