2
I would like to know a form of validation to know if the Insert was successfully executed, 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 I made a mistake when entering I would like to give the option to try again!!!
i need to execute "insert.execute()" before the if loop?
– Marcio Vieira
@Marciovieira sorry, I got in the way. See now if it clears up for you.
– viana
Good, solved the problem.... Thanks =D
– Marcio Vieira