“SELECT DISTINCT” ignores different cases

后端 未结 4 1925
故里飘歌
故里飘歌 2020-12-03 06:17

I have the problem, that MSSQL Server 2000 should select some distinct values from a table (the specific column is of the nvarchar type). There are the sometimes the same va

4条回答
  •  北海茫月
    2020-12-03 07:04

    Try setting the collation of the column in question to something binary, e.g. utf8-bin. You can either do that in the SELECT statement itself or by changing your table structure directly (which means it doesn't have to map the collation each time the query is run, since it will store it correctly internally).

提交回复
热议问题