Re: how can i open sql database
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.
Subject
Written By
Posted
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.