"blueads.com" wrote:
>
>         In my servlet, I am doing a query of one table bringing back the data with
> the method dataResultSet1.getString() then using what I get back to look for
> a match in another table using the sql LIKE syntax. I just want to count the
> matches from my first table that match my second table. I interate through
> them using an outer and innner while statement.
> - Should I be using sql COUNT and if so, how do I get the count into a
> variable I can use in my servlet?

For the second query, yes. Using the COUNT SQL statement will return a single
row with a single record. Read it with getInt().

K Mukhar

___________________________________________________________________________
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