My code like this
ResultSet rs = statement.executeQuery(
"SELECT SUM(column1) FROM table where column2=name ");
system.out.println(rs)
Is that correct? Or how do I, get the sum value from a column with SQL in java? Can you write a little example?
this will print ResultSet object.
this should be