Full Text Search Function

Full Text Search Function

In mysql, we have search the keywords in fields using Full-Text Search functions. We can perform boolean full-text searches using the IN BOOLEAN MODE modifier

Syntax:

SELECT [fields] FROM [table_name] WHERE MATCH ([fields]) AGAINST (’[keyword]’ IN BOOLEAN MODE);

Example:
SELECT id from site_table where match (url) againt (’html’ IN BOOLEAN MODE)

Leave a Reply

You must be logged in to post a comment.


All material @ copyrighted by chrisranjana.com. If you want to link to this article you are welcome to do so. Unauthorized publication is strictly prohibited. This developer tutorial website contains articles by Php programmers , Software developers, Mysql programmers and asp c# programmers. This website also contains ajax tutorials and advanced mysql sql stored procedures and functions tutorials and sample codes.