Why does not the following insertion code in the database work? The code arrives until Joption "has arrived!"
private void btnCadastroActionPerformed(java.awt.event.ActionEvent evt) {
String sql = "INSERT INTO tbl_cliente(id, nome, nascimento, cpf, sexo, endereco, numero, bairro, cidade,estado, data_entrada, preco_pagamento, datapagamento, mespago)VALUES (12, "+txtNome.getText()+", 1222-10-20, 12312, 123, 123, 123, 123, 123,23, 123, 123, 123, 123)";
JOptionPane.showMessageDialog(null, "chegou?", "chegou?", JOptionPane.INFORMATION_MESSAGE);
try {
pst = conecta.prepareStatement(sql);;
pst.executeQuery(sql);
JOptionPane.showMessageDialog(null, "Cadastrado", "Cadastrado", JOptionPane.INFORMATION_MESSAGE);
} catch (SQLException error) {
}
}