I am writing a SQL query which uses WHERE statement to find the record. The problem is MySQL seems not care about uppercase and lowercase string in the condition. My both bellow queries have same result.
SELECT * FROM mytable WHERE url = 'http://domain.com/aaa'
=> http://domain.com/aaa
record (CORRECT)
SELECT * FROM mytable WHERE url = 'http://domain.com/AAA'
=> http://domain.com/aaa
record (INCORRECT)
I searched on the Internet and tried to use BINARY
and COLLATE utf8_bin
but it didn't help. How can I make it work? Thank you in advance.