I have a MySQL query:
SELECT concat_ws(title,description) as concatenated HAVING concatenated LIKE '%SearchTerm%';
And my table is encoded utf8_general_ci with MyISAM.
Searches seem to be case sensitive.
I can't figure out how to fix it. What's going wrong and/or how do I fix it?
This works also:
In this method, you do not have to select the searched field:
A much better solution in terms of performance:
String comparision is case-sensitive when any of the operands is a binary string.
Another alternative is to use
COLLATE
,This is the working code:
Try this:
or (to let you see the difference)
Check CHARSET mentioned in the table schema:
Based on CHARSET, you can try the following.
Following are the cases which worked for me, CHARSET=latin1, MySQL version = 5.6.