在实际开发中,我们经常需要删除数据库中的数据,MyBatis可以使用XML映射文件或注解来编写删除(delete)语句,下面是两种方法的示例。
删除(delete)
Mapper:
int delete(int id)
京公网安备 11010502049817号