Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我目前正在删除一个表的 900 万行,每次运行以 200,000 行递增 1100 万行。
我是否需要手动重建表和索引,还是每次删除后都会自动重建?
是的,您必须手动重建表,您可以这样做:
ALTER TABLE database.table ENGINE=InnoDB;