What is the SQL used to do a search similar to “Related Questions” on Stackoverflow

前端 未结 8 2164
傲寒
傲寒 2020-12-30 16:08

I am trying to implement a feature similar to the "Related Questions" on Stackoverflow.

How do I go about writing the SQL statement that will search the Tit

8条回答
  •  时光取名叫无心
    2020-12-30 16:30

    It's probably done using a full text search which matches like words/phrases. I've used it in MySQL and SQL Server with decent success with out of the box functionality.

    You can find more on MySQL full text searches at:

    http://dev.mysql.com/doc/refman/5.1/en/fulltext-search.html

    Or just google Full Text search and you will find a lot of information.

提交回复
热议问题