Bom dia,
eu estou usando MySql e driver “mysql-connector-java-3.0.14-production-bin.jar”
quando executo esse metodo:
========================================
public void deleteUser(int idUsuario) throws SQLException {
Connection conn = null;
PreparedStatement stmt = null;
ResultSet rs = null;
try {
conn = getConnection();
stmt = conn.prepareStatement(
“delete from usuario where id_usuario = ?”);
stmt.executeUpdate();
}
catch (SQLException e) {
throw e;
}
finally {
if (rs != null) {
rs.close();
}
if (stmt != null) {
stmt.close();
}
}
}
Obtenho esse erro:
java.sql.SQLException: No value specified for parameter 1
alguém tem alguma dica?