Home >Backend Development >PHP Tutorial >刚刚在phpmyadmin 添加了几个索引,现在删除不了了,咋办?
刚刚在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` );