我想在java(eclips)中执行下面的代码但是我在ide中没有错误,没有更新oracle中的任何行
下面的代码是 update_method
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();
}
下面一个是调用者方法
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]);
我的 oracle 版本是 10g xe