Forum Moderators: coopster
I need a small help here. I need to know how to control the case sensitive in mysql query. I have a record in the table which is in uppercase. For eg. this is a sample records "TESTDATA". If someone searches for "testdata" the query should return 0 rows. But here it is returning the row. I want to know how to use the case sensitivity here. Please help and Thankyou.
Babloo
SELECT * FROM thetable WHERE BINARY thecolumn LIKE 'testdata%';
or
SELECT * FROM thetable WHERE thecolumn LIKE BINARY 'testdata%';