Gebruik de MySQL Binary operator: select value from tbl_test where CAST(name AS BINARY) ='abc'; SQL Fiddle-demo .