Usa BINARY
operatore
per quello:
SELECT DISTINCT(BINARY name) AS Name FROM X;
Puoi anche CAST
mentre si seleziona:
SELECT DISTINCT
(CAST(name AS CHAR CHARACTER SET utf8) COLLATE utf8_bin) AS Name FROM X;
Usa BINARY
operatore
per quello:
SELECT DISTINCT(BINARY name) AS Name FROM X;
Puoi anche CAST
mentre si seleziona:
SELECT DISTINCT
(CAST(name AS CHAR CHARACTER SET utf8) COLLATE utf8_bin) AS Name FROM X;