//工具的删除 @Test public void test22(){ int delete = sqlSession.delete("com.xiexin.dao.HumanDAO.deleteByPrimaryKey",7); System.out.println("delete = " + delete); sqlSession.commit(); sqlSession.close(); }
Mybatis
最新推荐文章于 2024-07-25 11:32:53 发布
//工具的删除 @Test public void test22(){ int delete = sqlSession.delete("com.xiexin.dao.HumanDAO.deleteByPrimaryKey",7); System.out.println("delete = " + delete); sqlSession.commit(); sqlSession.close(); }