0

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.

xlecoustillier
  • 16,183
  • 14
  • 60
  • 85

1 Answers1

2

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:

Community
  • 1
  • 1
xlecoustillier
  • 16,183
  • 14
  • 60
  • 85