title: Invalid relational operator
body: <p>I use a prepare statement to execute an update statement. </p>
  
  <pre><code>PreparedStatement stmt = null;
          stmt = connection.prepareStatement("UPDATE " + table + " SET date = ?, id = ?, n = ? " +
                  "WHERE (id_v = ?) AND (id_vid = ?)");
          stmt.setDate(1, n.getDate());
          stmt.setInt(2, n.getId());
          stmt.setInt(3, n.getN());
          stmt.setInt(4, n.getId_v());
          stmt.setInt(5, n.getId_vid());
          stmt.executeUpdate();
          stmt.close();
  </code></pre>
  
  <p>but I get an exception j<code>ava.sql.SQLException: ORA-00920: invalid relational operator</code></p>
  
  <p>What's wrong with my code?</p>
  
  <p>p.s table is string parametre that I pass through the method</p>
  
  <p><strong>edit</strong>
  The problem was resolved by using simple Statement(but not PrepareStatement) and inserting parametres to sql UPDATE via concatenation. SQL script of declaring the tables has been generated from physical data model diagram by Power Designer. It creates table fields as "date", "id_v", "id" and so on, so the problem was not in date field.</p>