php - SQL search query like stackoverflow -
In the user input field, such as
, I want to see existing articles to see if what's the same Are there. For example for example I Want to find the most relevant articles related to. I know that something like this is: But how do I get more than one keyword Manage Use an integer index, which will be something like this: or Two, the full text version will be faster, because it can use an index like'
SQL search queries such as stackoverflow
'word' like WHERE article_title
SELECT ... to ... against WHERE MATCH (field name) ('keyword keyword keyword'); Hack the query to select
to ... from ... where (the field name '% keyword%' or ' % Keyword% 'etc ...)
like ...% < / Code> version will be very expensive, because that type of wildcard search can not use indexes at all, the downside is that fulltext indexes only on MyISAM tables Plbd, and possibly Inodibi will not be available for the tables.
Comments
Post a Comment