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