Hi!
I made an update to a table in access via Java code, and it doesn't work. But, when I print to the console the result of executeUpdate(), it shows me 1, but in the database, no change. Can you tell me where's the problem, please?
System.out.println("here");
PreparedStatement st = conn.prepareStatement(
"UPDATE StocProduseCuFactura SET cantitate = " +
"cantitate - ? WHERE nume = ? and um = 'buc'");
st.setInt(1, cant);
st.setString(2, p.getNume());
System.out.println(st.executeUpdate());
st.close();
I forgot to say, if i run that SQL code in access, it's working.