1)问题描述
执行DDL的sql语句如下:
alter table user
add column cid int after id
错误:
Incorrect key file for table
try to repair it
2)问题答案
该表的索引出了异常
3)解决方案
删除索引重建
本文介绍了一种常见的数据库DDL操作错误——执行ALTER TABLE语句时遇到的索引异常,并提供了解决方案,即通过删除并重建索引来恢复正常。
1)问题描述
执行DDL的sql语句如下:
alter table user
add column cid int after id
错误:
Incorrect key file for table
try to repair it
2)问题答案
该表的索引出了异常
3)解决方案
删除索引重建
5753

被折叠的 条评论
为什么被折叠?