MySQL Forums
Forum List  »  Newbie

Re: how can i open sql database
Posted by: Roland Bouman
Date: July 18, 2005 01:38AM

So, how did you do it? Maybe someone else will benefit.

Now that youve got a resultset, you must traverse it. Usually, you do something like this:

ResultSet rs;
//init resultset
..
while (rs.next()){
System.out.println(rs.getXXX(col));
}


Where the XXX in getXXX is some type corresponding to the java mapped type of you column (getString, getInt) etc.

Options: ReplyQuote


Subject
Written By
Posted
July 14, 2005 05:51AM
Re: how can i open sql database
July 18, 2005 01:38AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.