FULLTEXT : FULLTEXT : Data Types MySQL TUTORIALS


MySQL TUTORIALS » Data Types » FULLTEXT »

 

FULLTEXT


mysql>
mysql> CREATE TABLE myTable
    -> (
    ->    OrderID SMALLINT UNSIGNED NOT NULL,
    ->    ModelID SMALLINT UNSIGNED NOT NULL,
    ->    Name VARCHAR(40),
    ->    PRIMARY KEY (OrderID),
    ->    FULLTEXT (Name)
    -> );
Query OK, rows affected (0.05 sec)

mysql>
mysql> desc myTable;
+---------+----------------------+------+-----+---------+-------+
| Field   | Type                 | Null | Key | Default | Extra |
+---------+----------------------+------+-----+---------+-------+
| OrderID | smallint(5unsigned | NO   | PRI |         |       |
| ModelID | smallint(5unsigned | NO   |     |         |       |
| Name    | varchar(40)          | YES  | MUL | NULL    |       |
+---------+----------------------+------+-----+---------+-------+
rows in set (0.00 sec)

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

mysql>
mysql>



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .

Follow Navioo On Twitter

MySQL TUTORIALS

 Navioo Data Types
» FULLTEXT