首页 > 技术文章 > mybatis中批量删除表格

chen-yun 2018-07-06 17:36 原文

批量drop表格

<update id="dropTable"> 
       DROP TABLE IF EXISTS
       <foreach collection="tableNameList" item="item" index="index" separator=",">
          `${item}` 
       </foreach>                      
    </update> 

 

推荐阅读