PostgreSQL UTF-8 binary collation

后端 未结 3 883
无人共我
无人共我 2021-01-17 22:48

I would like to have a collation which orders the UTF-8 encoding of 0x1234 below of 0x1235 regardless of the character mapping in the Unicode standard. MySQL uses utf8_bin f

3条回答
  •  滥情空心
    2021-01-17 23:27

    Postgres uses the collation defined by the system locale on cluster creation.

    You might try to ORDER BY encode(column,'hex')

提交回复
热议问题