Creating a Full-Text Index : Index « FullText Search « SQL / MySQL






Creating a Full-Text Index

    
mysql>
mysql> CREATE TABLE tablename (
    ->     id INT NOT NULL AUTO_INCREMENT,
    ->     column1 VARCHAR(50),
    ->     column2 VARCHAR(100),
    ->     PRIMARY KEY (id),
    ->     FULLTEXT (column1, column2)
    -> );
Query OK, 0 rows affected (0.00 sec)

mysql>
mysql>
mysql> drop table tablename;
Query OK, 0 rows affected (0.00 sec)

mysql>

   
    
    
    
  








Related examples in the same category

1.Alter table to add a fulltext index
2.Performing Phrase Searches with a FULLTEXT Index
3.FULLTEXT search index
4.Create a fulltext index on the combination of TITLE and SUMMARY.
5.Using fulltext index