This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Servlets and the fly likes ResultSet please help Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "ResultSet please help" Watch "ResultSet please help" New topic
Author

ResultSet please help

santosh vashist
Greenhorn

Joined: May 14, 2001
Posts: 25
Hi all,
I want to check if resultset contains some record or not.
How to do this with using next().can any body help please.

thanks,
santosh
Sandeep Jain
Ranch Hand

Joined: Oct 25, 2000
Posts: 124
hello ,
U camen make use od if condition there ie
ResultSet rs=stmt.executeQuery("UR Query");
if(rs.next())
{
while(rs.next())
{
String item1=rs.getString(1);
bla
bla
bla
}
}
rs.close();
stmt.close();

------------------
Try and Try Till u succeed
Sandeep Jain


Try and Try Till u succeed<br /> <br />Sandeep Jain
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: ResultSet please help
 
Similar Threads
How to find the size of my resultSet
reading image from database
difference between sensitive and insensitive of resultset
Scrollable resultset for prepared statement
java.rmi.UnMarshalException