php - case-insensitive search of MySQL? -


MySQL case-insensitive search?

For my site search, what is the most effective way to query my DB regardless of the word / phrase?

If your database / table is not set with a case-insensitive matching, you can COLLATE utf8_general_ci ( _ci suffix case stands for insensitive.)

Take a look at the document:

With the calllet clause, you can override what is the default match for a comparison of the calllet SQL statement in different parts of the ISST Can be used.


Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -