MyBatis empty database table data

 

 

<update id="truncateTable">
    truncate table ${tableName}
</update>

 

<update id="truncateTable">
    truncate table tableName
</update>

 

<-! Clear the table data ->
  <update id="truncateTable">
    truncate table all_stock_code
  </update>

  

// clear the table data
    int truncateTable();

  

Guess you like

Origin www.cnblogs.com/yang101/p/11668312.html