聘我网

新概念招聘3.0

MySQL中如何删除无名index?

vote up0vote downstar
create table listings(
    id integer unsigned NOT NULL AUTO_INCREMENT,
    accountId  integer unsigned default null,
    ...
    fulltext index (keywords),
    ....
);

怎么删除其中的fulltext index?

 

1 个答复

vote up0vote downcheck
ALTER TABLE listings DROP INDEX keywords;

你可以运行:

SHOW CREATE TABLE listings;

index未命名时,系统会自动分配一个名字,如果这个index建立在多个列上,则取第一个列作为index名

链接

您的回答





不是您要找的问题? 浏览其他含有标签 的问题或者 自己问个.