mysql中OPTIMIZE TABLE的作用
生活随笔
收集整理的這篇文章主要介紹了
mysql中OPTIMIZE TABLE的作用
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
1、先來看看多次刪除插入操作后的表索引情況
mysql> SHOW INDEX FROM `tbl_name`;+----------+------------+------------+--------------+-------------+-----------+-------------+----------+--------+------+------------+---------+| Table | Non_unique | Key_name | Seq_in_index | Column_name | Collation | Cardinality | Sub_part | Packed | Null | Index_type | Comment |+----------+------------+------------+--------------+-------------+-----------+-------------+----------+--------+------+------------+---------+| tbl_name | 0 | PRIMARY | 1 | StepID | A | 1 | NULL | NULL | | BTREE | || tbl_name | 1 | FlowID | 1 | FlowID | A | 1 | NULL | NULL | | BTREE | || tbl_name | 1 | WagerCount | 1 | WagerCount | A |總結
以上是生活随笔為你收集整理的mysql中OPTIMIZE TABLE的作用的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Linux疑难杂症解决方案100篇(十四
- 下一篇: linux 压缩和解压缩(zip/unz