mybatis防止sql注入 mybatis怎么批量刪除和添加?
mybatis怎么批量刪除和添加?插入到用戶(用戶名,性別)值中
mybatis怎么批量刪除和添加?
插入到用戶(用戶名,性別)值中
<!--collection=“users”用于指定循環(huán)集合的名稱。如果接口中沒有指定參數(shù)別名,則默認值為list
item=“U”用于指定每個循環(huán)后對象的別名
({U.username},{U.sex})
batch delete
delete from t#user where id in(
{id}
)