Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

manipulate ResultSet 1

Status
Not open for further replies.

dekcool

Programmer
Oct 2, 2002
231
PH
hi good day!

iam new with Java, please give me some idea on how can i get the records using ResultSet.

any inputs will gladly appreciate, thanks in advance

____________________________________________________
Invest your time in learning, Not just practicing.

DEK
 
I think you should read a JDBC tutorial :
But this is a very basic JDBC call :

Code:
Connection c = ...
// Get a Statement
Statement s = c.createStatement();
// Execute a query and get a ResultSet
ResultSet rs = s.executeQuery("select * from users where clue > 0");
while (rs.next()) {
     // do something
}

// close all db objects

--------------------------------------------------
Free Database Connection Pooling Software
 
thanks a lot i got it!

____________________________________________________
Invest your time in learning, Not just practicing.

DEK
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top