【问题标题】:Postegresql pattern matching utf8Postgresql 模式匹配 utf8
【发布时间】:2013-10-20 08:40:49
【问题描述】:

在我的 mysql 数据库中,我有一个 utf-8 格式的城市名称:“Bucureşti”

如果我这样做了

SELECT * 
FROM cities 
WHERE name LIKE 'Bucuresti';  <- without diacritic 'ş' it works in MySQL.

如何在 postgresql 中也实现这一点?

【问题讨论】:

标签: mysql postgresql pattern-matching


【解决方案1】:

签出 unaccent 扩展,它是 contrib 包的一部分。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2016-02-11
    • 1970-01-01
    • 1970-01-01
    • 2018-04-05
    • 1970-01-01
    • 2015-04-26
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多