今天想删除我以前建立的一个数据库中的一个字段时提示出错,感觉很奇怪,请各位帮我看看:
mysql>describe company;
Field          Type           Null    Key        Default             Extra
id             int(4)         NO      PRI        NULL                auto_increment
company        varchar(30)    NO                 NULL                
city           varchar(6)     NO                 NULL
address        varchar(11)    NO                 NULL
……
index          varchar(20)    YES                NULL  
12 rows in set(0.11 sec)    
mysql>alter table company
    ->drop index;
ERROR 1064 (42000):You have an error in SQL syntax;check the manual that corresponds to your Mysql server version for the right syntax to use near '' at line 2
mysql>
而我在同一个数据库中建立其他表,采用同样的操作却可以删除字段,不知道这个为什么不可以呢?