mybatis一次动态删除多个表数据
作者:互联网
sql中需要加上分号,表示一天sql语句的结束:
<delete id="deleteBussinessData" statementType="STATEMENT"> <foreach collection="tableList" item="tableName" index="index" > delete from ${tableName} where company_id = ${companyId}; </foreach> </delete>
标签:删除,companyId,company,tableName,sql,mybatis,动态,where 来源: https://www.cnblogs.com/zqq-blog/p/13338671.html