查询排序规则名称是否参考特定语言?


CREATE TABLE collate_test2 (
a int,
b text COLLATE "sv-x-icu"
);

什么是"sv"的意思吗?我能猜出"en"参考英语。或How can I query the sv reference the language.

我已经做了

SELECT * FROM pg_collation where collname ilike '%icu%';

没有参考语言规范的一列。

我也检查了https://unicode-org.github.io/icu/userguide/collation/api.html#references

sv-SE的区域设置为瑞典语(sv),就像瑞典语(SE)所说的那样(关于区域设置,您可以查看此FAQ)。我还找到了这个关于之间差异的答案和sv-SE不同的ISO标准。

-x-ICU是Unicode的国际组件(更多信息在这里,这里是PG SQL - 24.2.2.2.2中ICU的参考)。

ICU排序);
SELECT collname, collversion  FROM pg_collation where collname ilike '%icu%' and  collname ilike '%zh%';

返回
collname     | collversion
------------------+-------------
zh-x-icu         | 153.14.36.8
zh-Hans-x-icu    | 153.14.36.8
zh-Hans-CN-x-icu | 153.14.36.8
zh-Hans-HK-x-icu | 153.14.36.8
zh-Hans-MO-x-icu | 153.14.36.8
zh-Hans-SG-x-icu | 153.14.36.8
zh-Hant-x-icu    | 153.14.36.8
zh-Hant-HK-x-icu | 153.14.36.8
zh-Hant-MO-x-icu | 153.14.36.8
zh-Hant-TW-x-icu | 153.14.36.8
zh型>参考语言代码:https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes

洋溢在参考脚本代码:https://www.unicode.org/iso15924/iso15924-codes.html

CN参考国家代码:https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes

最新更新