Good morning,
I can not find the way to work with the results returned by a query to Database from java.
The code where I made the query is the following:
boolean isInsert;
try (PreparedStatement ps = con_actu.prepareStatement("SELECT * FROM info_XboxOne WHERE Codigo_juego = ?")) {
ps.setString(1, code);
try (ResultSet rs = ps.executeQuery()) {
isInsert = !rs.next();
}
}
How can I enter the data of the results you give me? I need to compare if the values in the database are the same as the ones just removed, to know if I have to update it and have a record of the last time the record was updated.