How to change column collation postgresql

后端 未结 1 1891
太阳男子
太阳男子 2021-01-20 23:05

I have a database with default LC_COLLATE=C but I want to have different COLLATION to one column in my table, how to do it?

1条回答
  •  盖世英雄少女心
    2021-01-20 23:28

    You can just alter column table

    ALTER TABLE users ALTER COLUMN name SET DATA TYPE character varying(255) COLLATE "en_US"
    

    0 讨论(0)
提交回复
热议问题