2013-10-20 48 views
1

在我的MySQL數據庫我UTF8有一個城市的名字:「布加勒斯特」Postegresql模式匹配UTF8

如果我去做

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

我如何在PostgreSQL中實現,這也?

+4

http://stackoverflow.com/questions/11005036/does-postgresql-support-accent-insensitive-collat​​ions – Ashalynd

回答

1

檢出unaccent擴展名,它是contrib包的一部分。