请教int nResult=st.executeUpdate(sql);问题
public static int executeSQL(Connection conn,String sql) throws SQLException
{
Statement st=conn.createStatement();
int nResult=st.executeUpdate(sql);
st.close();
return nResult;
}
我写了这样一个method但是每次,执行到int nResult=st.executeUpdate(sql);好像就不执行了(在调试的时候发现的),请教是怎么回事?
谢谢!