I have a problem with DISTINCT in SQL select. I have table with following values in column:
sítotisk
sitotisk
when I use DISTINCT - so the result is only "sítotisk" ...db system think, that is the same word, but i need the words have seperaly.
I have a problem with DISTINCT in SQL select. I have table with following values in column:
sítotisk
sitotisk
when I use DISTINCT - so the result is only "sítotisk" ...db system think, that is the same word, but i need the words have seperaly.
That's a collation problem. I guess you're using an accent insensitive collation. You can check that in your server/DB/table properties.
Try
SELECT DISTINCT yourColumn COLLATE utf8_bin
FROM ...
You might want to take a look at these questions that address the same issue: