1. List对象

dao接口:

int batchDelete(List ids);

mapping.xml:


    delete from test where test_id in
    
        #{item}
    

2. 数组对象

dao接口:

int batchDelete(String[] ids);

mapping.xml:


    delete from test where test_id in
    
        #{item}
    

3. 多参数批量操作

请移步MyBatis多参数批量操作

4. 属性说明

MyBatis批量操作_第1张图片