Brug MySQL Binary operatør: select value from tbl_test where CAST(name AS BINARY) ='abc'; SQL Fiddle Demo .