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

  SQL search queries such as stackoverflow   

for example I Want to find the most relevant articles related to.

I know that something like this is:

'word' like WHERE article_title

But how do I get more than one keyword Manage

Use an integer index, which will be something like this:

  SELECT ... to ... against WHERE MATCH (field name) ('keyword keyword keyword'); Hack the query to select   

or

  to ... from ... where (the field name '% keyword%' or ' % Keyword% 'etc ...)   

Two, the full text version will be faster, because it can use an index like' 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

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -