Użyj BINARY
operator
za to:
SELECT DISTINCT(BINARY name) AS Name FROM X;
Możesz także CAST
podczas wybierania:
SELECT DISTINCT
(CAST(name AS CHAR CHARACTER SET utf8) COLLATE utf8_bin) AS Name FROM X;
Użyj BINARY
operator
za to:
SELECT DISTINCT(BINARY name) AS Name FROM X;
Możesz także CAST
podczas wybierania:
SELECT DISTINCT
(CAST(name AS CHAR CHARACTER SET utf8) COLLATE utf8_bin) AS Name FROM X;