mybatis批量删除 java_Mybatis批量删除
delete from t_standard_catalogwhere standard_id in#{standardId,jdbcType=INTEGER}或者delete from t_standard_catalogwhere standard_id in#{standardId,jdbcType=INTEGER}foreach元素的属性主要有 item,index,collection,
delete from t_standard_catalog
where standard_id in
#{standardId,jdbcType=INTEGER}
或者
delete from t_standard_catalog
where standard_id in
#{standardId,jdbcType=INTEGER}
foreach元素的属性主要有 item,index,collection,open,separator,close。
item表示集合中每一个元素进行迭代时的别名. (直接找到对应的delList集合里面的所有元素,item="item"中的item(后一个)必须与#{item} 中的item一致)
index指 定一个名字,用于表示在迭代过程中,每次迭代到的位置.
open表示该语句以什么开始,separator表示在每次进行迭代之间以什么符号作为分隔 符.
close表示以什么结束.
魔乐社区(Modelers.cn) 是一个中立、公益的人工智能社区,提供人工智能工具、模型、数据的托管、展示与应用协同服务,为人工智能开发及爱好者搭建开放的学习交流平台。社区通过理事会方式运作,由全产业链共同建设、共同运营、共同享有,推动国产AI生态繁荣发展。
更多推荐


所有评论(0)