tags:

views:

125

answers:

2

It's created this way:

create table listings(
    id integer unsigned NOT NULL AUTO_INCREMENT,
    accountId  integer unsigned default null,
    title varchar(300) not null,
    country integer unsigned,
    region integer unsigned,
    type integer unsigned,
    price integer,
    unit varchar(20) not null,
    priceUSD decimal(12,2),
    bedrooms integer unsigned,
    thumbnail varchar(100) default null,
    keywords text,
    created datetime,
    deleted boolean default 0,
    fulltext index (keywords),
    PRIMARY KEY (id)
) engine=MyISAM;

How to drop that fulltext index which has no name?

What if the un-named index is:fulltext index (title ,keywords)?

+1  A: 
ALTER TABLE listings DROP INDEX keywords;
Haim Evgi
Why it works?I didn't specify its name as `keywords`
yes its likeFULLTEXT KEY `keywords` (`keywords`)
Haim Evgi
+2  A: 

Run this command in the mysql client:

mysql> SHOW CREATE TABLE listings;

It will show you the DDL for the table, including the system-assigned name for the index.

Bill Karwin
Oh,I've just dropped that index,so I can't see the result...
Use your `test` database and create a new, empty table with a fulltext index, just so you can observe how `show create table` shows the system-assigned names for indexes and constraints.
Bill Karwin