I have a problem with an UPDATE in java, this one receives a parameter, it does not run, my syntax will put it here, maybe there is something that I forget, from what I've seen on the net, it's fine but I do not know pass: c
public void CollectRv(String Bcode){
try{
ConexionOracle conexionOracle = new ConexionOracle();
conexionOracle.conectar();
Connection conn = conexionOracle.getConnection();
PreparedStatement ps = conn.prepareStatement("UPDATE tabla\n" +
"set tabla.estado = 1 \n" +
"where tabla.task_class_cd = 'CHECK' \n" +
"and tabla.estado = 0 \n" +
"and num = 3002000 \n" +
"and sched= (select sched from tabla where num =3002000 and code= ?");
ps.setString(1,Bcode.trim());
ps.executeUpdate();
ps.close();
conn.close();
conexionOracle.cerrar();
}catch (SQLException ex) {
Logger.getLogger(Consulta.class.getName()).log(Level.SEVERE, null, ex);
}
}