Home >Backend Development >PHP Tutorial >刚刚在phpmyadmin 添加了几个索引,现在删除不了了,咋办?

刚刚在phpmyadmin 添加了几个索引,现在删除不了了,咋办?

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-23 13:49:551848browse

刚刚在phpmyadmin 添加了几个索引,现在删除不了了,咋办?



用了“ALTER TABLE `mayi_record` DROP INDEX ( `adddate` , `adddate1` , `adddate2` );”语句

提示:

 #1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '( `adddate` , `adddate1` , `adddate2` )' at line 1


回复讨论(解决方案)

你看你的图,最左下角还有个 +索引,点一下就别有洞天了!

你看你的图,最左下角还有个 +索引,点一下就别有洞天了!



哈哈,我终于找到宝藏了。。。

ALTER TABLE `mayi_record` DROP INDEX   indexname ( `adddate` , `adddate1` , `adddate2` );

ALTER TABLE `mayi_record` DROP INDEX   indexname ( `adddate` , `adddate1` , `adddate2` );


谢谢,最近在看学习索引。非常感谢。
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn