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
How to include variables in double-quoted strings in php?
Can we use php variable in javascript?
Tell me how can we change the maximum size of the files to be uploaded?
How to assigning a new character in a string using php?
iam mca post graduate in 2010 not getting job in JAVA so iam looking for carear in php as market demand is high so it is best option to try for php or not
What type of operation is needed when passing values through a form or an url?
How to define a function with any number of arguments?
Write down the code for save an uploaded file in php.
Tell me what are magic methods?
Difference between $message vs. $$Message in php.
How long does a php session last for?
How can MYSQL functions be available with PHP?
What does session start do in php?
What is the meaning of die in php?
How to terminate the execution of a script in PHP?