delete from Dept where id=#{id}
Test
//测试删除
@Test
public void deleteDept(){
try {
//Dept dept = new Dept();
//dept.setId(17);
session.update("DEPT.deleteDept",17);
session.commit();//正常提交
} catch (Exception e) {
e.printStackTrace();
session.rollback();//异常回滚
}
}
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)