i have a simple question. i'm connection to the oracle db thru jdbc
i got evertying connect i want to know how i can get the result from an sql statment into a variable?
heres my code
///////////////////////////////////////////////////
Connection con = DriverManager.getConnection(""
;
Statement s = con.createStatement()
ResultSet rs=s.executeQuery(select max(column from table);
rs.close();
s.close();
con.close();
//////////////////////////////////////////////
//the result statment returns max number in a column
//i want to put that in a var how would i do that?
i got evertying connect i want to know how i can get the result from an sql statment into a variable?
heres my code
///////////////////////////////////////////////////
Connection con = DriverManager.getConnection(""
Statement s = con.createStatement()
ResultSet rs=s.executeQuery(select max(column from table);
rs.close();
s.close();
con.close();
//////////////////////////////////////////////
//the result statment returns max number in a column
//i want to put that in a var how would i do that?