正在加载图片...
stat execute(sql)i y catch (SQLException e) t // TODO Auto-generated catch block e printstackTrace()i j finally i 1 catch (SQLException e)t TODO Auto-generated catch block 1 B(); /根据给定ID删除数据库中的一条留言记录 public void delMsg(int id)t 根据ID删除一条记录语句 e printstackTrace() F finally i // TODO Auto-generated catch block e printstackTrace() () public void setMsgId(string id) int msgId Integer value of (id) this msg. setId(msgId)i public message getMsg()( return this getMsg(this msg getId()try { stat.execute(sql); } catch (SQLException e) { // TODO Auto-generated catch block e.printStackTrace(); }finally{ try { stat.close(); } catch (SQLException e) { // TODO Auto-generated catch block e.printStackTrace(); } closeDB(); } } //根据给定ID删除数据库中的一条留言记录 public void delMsg(int id){ openDB(); String sql = try { stat.execute(sql); } catch (SQLException e) { // TODO Auto-generated catch block e.printStackTrace(); }finally{ try { stat.close(); } catch (SQLException e) { // TODO Auto-generated catch block e.printStackTrace(); } closeDB(); } } public void setMsgId(String id){ int msgId = Integer.valueOf(id); this.msg.setId(msgId); } public message getMsg(){ return this.getMsg(this.msg.getId()); } 根据 ID 删除一条记录语句
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有