如何在postgresql中存储多语言字符串?
这个问题并非如下:
我希望在一个表格中插入日语,韩语,中文(简体和繁体)和俄语字符的字符串。
INSERT INTO articles (title, text, date)
VALUES ('article title', 'Long text with chinese (龙), korean(울), japanese(形) and russian(ЯД) characters', '2017-02-16');
如何在Postgresql中使用正确的LC_COLLATE和LC_CTYPE为表中的多语言字符串创建数据库?
CREATE DATABASE "articles"
WITH OWNER "postgres"
ENCODING 'UTF8'
LC_COLLATE = 'zh_CN.UTF-8'
LC_CTYPE = 'zh_CN.UTF-8'
TEMPLATE = template0;
OR
CREATE DATABASE "articles"
WITH OWNER "postgres"
ENCODING 'UTF8'
LC_COLLATE = 'zh_TW.UTF-8'
LC_CTYPE = 'zh_TW.UTF-8'
TEMPLATE = template0;
OR
CREATE DATABASE "articles"
WITH OWNER "postgres"
ENCODING 'UTF8'
LC_COLLATE = 'ko_KR.UTF-8'
LC_CTYPE = 'ko_KR.UTF-8'
TEMPLATE = template0;
OR
CREATE DATABASE "articles"
WITH OWNER "postgres"
ENCODING 'UTF8'
LC_COLLATE = 'ja_JP.UTF-8'
LC_CTYPE = 'ja_JP.UTF-8'
TEMPLATE = template0;
OR
CREATE DATABASE "articles"
WITH OWNER "postgres"
ENCODING 'UTF8'
LC_COLLATE = 'ru_RU.UTF-8'
LC_CTYPE = 'ru_RU.UTF-8'
TEMPLATE = template0;
在postgresql中存储多语言文本的最佳做法是什么?