zoukankan      html  css  js  c++  java
  • mysql truncate table命令使用总结


    truncate使用注意
    由于上过truncate table a_table命令一次当,将教训记录下来,以示警戒!
     
     
    mysql truncate table a_table命令受影响结果说明,亲身体验
     
    命令
    truncate table a_table;
     
     
    会将执行表中的数据删除,有增长ID值的话会清空,但索引和表字段不会改变。切记增长ID值的改变!使用时需要注意!
     
     
     
    truncate性能
    truncate table(innodb引擎) 数量1700w(17708030),只需要27s,平均每秒63w
     
    mysql> truncate table dzh_weibo_cache20130106;
    Query OK, 0 rows affected (27.18 sec)
     
     
  • 相关阅读:
    poj 2000
    poj1316
    poj1922
    poj2017
    poj1833 排列
    poj1338
    poj2136
    poj2242
    IE兼容html5标签
    绑定事件后,某些情况下需要解绑该事件
  • 原文地址:https://www.cnblogs.com/svennee/p/4084501.html
Copyright © 2011-2022 走看看