Answer the question
In order to leave comments, you need to log in
Case-insensitive search for like does not work
The actual query
SELECT *
FROM (
`users`
)
WHERE `username` LIKE '%JNC%'
LIMIT 0, 30 Looks for a
row with username MYJNC
And the query
SELECT *
FROM (
`users`
)
WHERE `username` LIKE '%jNC%'
LIMIT 0, 30
username varchar(50) encoding utf8_bin
Answer the question
In order to leave comments, you need to log in
I changed the encoding for the varchar to utf8_general_ci and everything was fine.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question