Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/mysql/68.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何手动更新MySQL表';s指数?_Mysql - Fatal编程技术网

如何手动更新MySQL表';s指数?

如何手动更新MySQL表';s指数?,mysql,Mysql,我意外地重置了以前的索引,现在我需要手动更新它,以便索引=表中的行数 此操作的sql命令是什么?ALTER TABLE tablename AUTO\u INCREMENT=1

我意外地重置了以前的索引,现在我需要手动更新它,以便索引=表中的行数


此操作的sql命令是什么?

ALTER TABLE tablename AUTO\u INCREMENT=1