构建mysql数据库时,排序字段中不同语言的意义是什么

What is the significance of the different languages in the collation field when building a mysql database

我比较熟悉utf-8、ci、unicode等的意义,但是多语言选项的主要区别是什么(latin1_swedish、latin2_general, latin1_german, 等等)?

这会影响字符串的排序和比较方式。

来自文档:

latin1_german1_ci (dictionary) rules:

Ä = A
Ö = O
Ü = U
ß = s

latin1_german2_ci (phone-book) rules:

Ä = AE
Ö = OE
Ü = UE
ß = ss

这意味着如果您使用 latin2_german2_ci 定义列并发出查询:

SELECT  *
FROM    mytable
WHERE   mycolumn = 'Mueller'

它将 return Müller,如果该列已定义 latin1_german1_ci

,则不会