This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Hi Everyone, Here is my problem. I have a table and I m interested in finding the number of rows from a select statement. SELECT COUNT(EMPID) FROM EMPLOYEE WHERE DEPARTMENT = 'HR'; After I execute the query I don't know how to retrieve the integer value. I used ResultSet.getInt(integer) but it doesn't help. Any idea on how to get the count value. Appreciate your response. Thanks, Param
Joined: Jun 06, 2002
I think I figured it out. ResultSet.getInt(1) since the result set has only one column containing the Count(Empid) value.