mybatis批量删除

parameterType:传过来的数据类型;
collection:类型,如list;
item:对象形参名;

DELETE Code:

    
          DELETE FROM camera where id in
          
                    #{list.id}
          
    

延伸批量插入
INSERT:


  insert into Author (username, password, email, bio) values
  
    (#{item.username}, #{item.password}, #{item.email}, #{item.bio})
  

你可能感兴趣的:(MyBatis)