delete id=deleteObjects delete from sys_logs where choose when test=ids!=null and idslength0 foreach collection=ids
这是一个 MyBatis 的 XML 映射文件中的 SQL 语句,使用了 MyBatis 的动态 SQL 功能。
该 SQL 语句的作用是删除 sys_logs 表中的记录。其中,
最终生成的 SQL 语句类似于:
delete from sys_logs where id=1 or id=2 or id=3
或者:
delete from sys_logs where id=-1
具体生成的 SQL 语句取决于传入的参数 ids。
原文地址: https://www.cveoy.top/t/topic/hvb2 著作权归作者所有。请勿转载和采集!