I have a case-sensitive colume(utf8_bin collation). I need to search a string case-insensitively and order the results case-insensitively.
Is have written this query.
SELECT customer_name
FROM customers
WHERE CONVERT(customer_name USING UTF8) LIKE 'aB%'
ORDER BY CONVERT(customer_name USING UTF8)
LIMIT 0,10
Is this efficient? Or is there a better way to achieve this?