I have a problem. When I have this code SELECT FIRST_NAME FROM CONTACT WHERE FIRST_NAME LIKE '%ñ%' why is it returning all FIRST_NAME that has n without ñ. Im expecting only those that have ñ. Thanks in advance.
SELECT FIRST_NAME
FROM CONTACT
WHERE FIRST_NAME LIKE '%ñ%' COLLATE utf8_spanish_ci
Try to use a BINARY operator to compare strings in binary way -
SELECT FIRST_NAME FROM CONTACT WHERE FIRST_NAME LIKE BINARY '%ñ%'
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With