Použijte BINARY
operátor
za to:
SELECT DISTINCT(BINARY name) AS Name FROM X;
Můžete také CAST
při výběru:
SELECT DISTINCT
(CAST(name AS CHAR CHARACTER SET utf8) COLLATE utf8_bin) AS Name FROM X;
Použijte BINARY
operátor
za to:
SELECT DISTINCT(BINARY name) AS Name FROM X;
Můžete také CAST
při výběru:
SELECT DISTINCT
(CAST(name AS CHAR CHARACTER SET utf8) COLLATE utf8_bin) AS Name FROM X;