Possible Duplicate:
MySQL/PHP Search Efficiency
How to Add FullText Capability to the existing table in MySQL.
I've seen adding it directly at the time of table creation as follow.
CREATE TABLE articles (
    id INT UNSIGNED AUTO_INCREMENT NOT NULL PRIMARY KEY,
    title VARCHAR(200),
    body TEXT,
    FULLTEXT (title,body)
);
But how to add FullText Manually after the table is created?
According to the docs at http://dev.mysql.com/doc/refman/5.0/en/alter-table.html
ALTER TABLE TABLE_NAME ADD [FULLTEXT|SPATIAL] [INDEX|KEY] [index_name]
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With