新手问题 PostgreSQL 大小写敏感问题

zhugexinxin · February 01, 2021 · Last by aline57963 replied at February 04, 2021 · 705 hits

我之前一直在用 mysql, 设置的是大小写不敏感。

encoding: utf8mb4
collation: utf8mb4_unicode_ci

现在我正在学习使用 pg, 自然我也希望是设置成大小写不敏感,但是我却没发现像 mysql 直接设置的选项。

尝试查找,没有发现类似设置。

  1. https://www.postgresql.org/docs/current/multibyte.html
  2. https://help.aliyun.com/document_detail/52950.html

现在只是在写 sql 时,强行加上 lower()

请问还有其他方案吗

You need to Sign in before reply, if you don't have an account, please Sign up first.