Difference betweeh Character sets and Collate
2012-11-30 13:54
218 查看
Character sets is a list of symbols. If you compare ASCII to latin1, with latin1 you will be able to write all american words because latin1 contains all ASCII characters, which are sufficient to write any american word. On the contrary, with ASCII you will not be able to write all words of Western European specific languages, because for instance characters like 'À', 'ë', 'õ', 'Ñ' are missing.
Collation is about comparison between characters. It defines a set of rules to compare characters of a character set.
In MySQL, collations are often related to one language (e.g. 'latin1_swedish_ci', 'latin1_german1_ci', etc.). When you order a select query, a word starting by 'ö' will be placed between two words starting by 'o' and 'p' in some languages (with some collations). But with another collation, this character may be placed completely at the end, which make the resulting selection different.
Collation is about comparison between characters. It defines a set of rules to compare characters of a character set.
In MySQL, collations are often related to one language (e.g. 'latin1_swedish_ci', 'latin1_german1_ci', etc.). When you order a select query, a word starting by 'ö' will be placed between two words starting by 'o' and 'p' in some languages (with some collations). But with another collation, this character may be placed completely at the end, which make the resulting selection different.
相关文章推荐
- Differences between ANSI, ISO-8859-1 and MacRoman character sets
- The Minimum About Unicode and Character Sets
- 10.1.5 Connection Character Sets and Collations
- Character Sets and Collations
- Listing of Character Sets FOR 9.2, 9.0.1 and 8.1.7 including Language references
- character sets and collations in mysql
- What is the difference between Simple, Advanced and Parameter data sets?
- The Absolute Minimum Every Software Developer Absolutely, Positively Must Know About Unicode and Character Sets (No Excuses!)
- MariaDB_Setting Character Sets and Collations
- Win32 Series - Keyboard Messages and Character Sets
- Positively Developer Must Know About Unicode and Character Sets (No Excuses!)
- Introducing Character Sets and Encodings(字符集与编码介绍)
- Connection Character Sets and Collations
- 字符集及其比较方式(Character Sets and Collations)
- Type difference of character literals in C and C++
- Positively Must Know About Unicode and Character Sets (No Excuses!)
- Character Sets and Collations
- Character sets and codepages
- Every Software Developer Absolutely, Positively Must Know About Unicode and Character Sets
- Differences between Thumb and ARM instruction sets