I would like to know a form of validation to know if the insert was executed successfully, I have no idea how to do this because the execute () method does not return anything!
Connection connInsert = DriverManager.getConnection(ConnectionURL);
PreparedStatement inserir = connInsert.prepareStatement("INSERT INTO PRODUTO (ID, NOME, QTDE) VALUES (varId, varNome, varQtde)");
inserir.execute();
I just wanted to know how to validate because if there was an error inserting I would like to give the option to try again !!!