title: why does not update jdbc statement execute in oracle?
body: <p>I want to execute below code in java (eclips)
  however I get no error in ide, no update any rows in oracle </p>
  
  <p>below code is update_method</p>
  
  <pre><code>public void setUpdate(String statement,String par1,String par2)throws Exception
  
  {
    System.out.println("this is setUpdate method"+statement);
    con = DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe","ALBALOO","myjava123");
    st =con.prepareStatement(statement);
    st.setString(1, par1);
    st.setString(2,par2);
    st.executeUpdate();
    // con.commit();
   }
  </code></pre>
  
  <p>and below one is for caller method</p>
  
  <pre><code>st="update newslables3 set nlable='1' where hhmm in (SELECT hhmm FROM newslables3 where hhmm not between '0830' and '1130') and yymmdd between ? and ? ";       
                db.setUpdate(st,priceSet[i][3],priceSet[i+1][3]);
  </code></pre>
  
  <p>my oracle version is 10g xe</p>