Answer Posted / jagpreet
MySQL has support for full-text indexing and searching. A
full-text index in MySQL is an index of type FULLTEXT.
FULLTEXT indexes can be used only with MyISAM tables; they
can be created from CHAR, VARCHAR, or TEXT columns as part
of a CREATE TABLE statement or added later using ALTER
TABLE or CREATE INDEX. For large datasets, it is much
faster to load your data into a table that has no FULLTEXT
index, and then create the index afterwards, than to load
data into a table that has an existing FULLTEXT index.
Constraints on full-text searching are listed in Section
12.7.4, “Full-Text Restrictions”.
Full-text searching is performed with the MATCH() function.
mysql> CREATE TABLE articles (
-> id INT UNSIGNED AUTO_INCREMENT NOT NULL PRIMARY
KEY,
-> title VARCHAR(200),
-> body TEXT,
-> FULLTEXT (title,body)
-> );
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
What is $$ in php?
Is python similar to php?
What is put method in php?
What are the 5 types of variables?
What are php data types?
What is the function mysql_pconnect() usefull for?
What is the correct php command to use to catch any error messages within the code?
What does nan stand for computer science?
What is the actually used php version?
How is it possible to return a value from a function?
What is the difference between mysql_fetch_array() and mysql_fetch_assoc()?
What is regex in html?
What is php namespace?
How does the identity operator ===compare two values in PHP?
Require_once(), require(), include(). What is difference between them?