81,094
社区成员
发帖
与我相关
我的任务
分享
public static boolean upDate(String sql,Object ...obj)throws MyException{
ps=getPreparedStatement(sql,obj);
try {
return ps.execute();
} catch (SQLException e) {
// TODO Auto-generated catch block
throw new MyException("sql语句出错了"+e.getMessage());
}finally{
try {
ps.close();
conn.close();
} catch (SQLException e) {
// TODO Auto-generated catch block
throw new MyException("sql语句出错了"+e.getMessage());
}
}
}