mybatis里sql中关于循环的使用
< delete id =" deletePerson " parameterClass ="map" > delete from 表名 where sex=#sex# < iterate prepend ="and" property =" personList" open ="(" close =")" conjunction="or" > age=$personList[].age$ iterate > delete >
< delete id =" deletePerson " parameterClass ="map" > delete from 表名 where sex=#sex# < iterate prepend ="and" property =" personList" open ="(" close =")" conjunction="or" > age=$personList[].age$ iterate > delete >
共有 0 条评论