Character Sets And Collations In Mysql - Oracle 5.0 Reference Manual

Table of Contents

Advertisement

10.1.2. Character Sets and Collations in MySQL

The MySQL server can support multiple character sets. To list the available character sets, use the
SHOW CHARACTER SET
Section 10.1.13, "Character Sets and Collations That MySQL
mysql>
SHOW CHARACTER SET;
+----------+-----------------------------+---------------------+--------+
| Charset
| Description
+----------+-----------------------------+---------------------+--------+
| big5
| Big5 Traditional Chinese
| dec8
| DEC West European
| cp850
| DOS West European
| hp8
| HP West European
| koi8r
| KOI8-R Relcom Russian
| latin1
| cp1252 West European
| latin2
| ISO 8859-2 Central European | latin2_general_ci
| swe7
| 7bit Swedish
| ascii
| US ASCII
| ujis
| EUC-JP Japanese
| sjis
| Shift-JIS Japanese
| hebrew
| ISO 8859-8 Hebrew
| tis620
| TIS620 Thai
| euckr
| EUC-KR Korean
| koi8u
| KOI8-U Ukrainian
| gb2312
| GB2312 Simplified Chinese
| greek
| ISO 8859-7 Greek
| cp1250
| Windows Central European
| gbk
| GBK Simplified Chinese
| latin5
| ISO 8859-9 Turkish
...
Any given character set always has at least one collation. It may have several collations. To list the
collations for a character set, use the
for the
latin1
names that begin with latin1:
mysql>
SHOW COLLATION LIKE 'latin1%';
+---------------------+---------+----+---------+----------+---------+
| Collation
+---------------------+---------+----+---------+----------+---------+
| latin1_german1_ci
| latin1_swedish_ci
| latin1_danish_ci
| latin1_german2_ci
| latin1_bin
| latin1_general_ci
| latin1_general_cs
| latin1_spanish_ci
+---------------------+---------+----+---------+----------+---------+
The
latin1
Collation
latin1_german1_ci
latin1_swedish_ci
latin1_danish_ci
latin1_german2_ci
latin1_bin
latin1_general_ci
latin1_general_cs
latin1_spanish_ci
Collations have these general characteristics:
Character Sets and Collations in MySQL
statement. A partial listing follows. For more complete information, see
(cp1252 West European) character set, use this statement to find those collation
| Charset | Id | Default | Compiled | Sortlen |
| latin1
|
| latin1
|
| latin1
| 15 |
| latin1
| 31 |
| latin1
| 47 |
| latin1
| 48 |
| latin1
| 49 |
| latin1
| 94 |
collations have the following meanings.
| Default collation
| big5_chinese_ci
| dec8_swedish_ci
| cp850_general_ci
| hp8_english_ci
| koi8r_general_ci
| latin1_swedish_ci
| swe7_swedish_ci
| ascii_general_ci
| ujis_japanese_ci
| sjis_japanese_ci
| hebrew_general_ci
| tis620_thai_ci
| euckr_korean_ci
| koi8u_general_ci
| gb2312_chinese_ci
| greek_general_ci
| cp1250_general_ci
| gbk_chinese_ci
| latin5_turkish_ci
statement. For example, to see the collations
SHOW COLLATION
5 |
|
8 | Yes
| Yes
|
| Yes
| Yes
|
|
|
Meaning
German DIN-1
Swedish/Finnish
Danish/Norwegian
German DIN-2
Binary according to
Multilingual (Western European)
Multilingual (ISO Western European), case sensitive
Modern Spanish
769
Supports".
| Maxlen |
|
2 |
|
1 |
|
1 |
|
1 |
|
1 |
|
1 |
|
1 |
|
1 |
|
1 |
|
3 |
|
2 |
|
1 |
|
1 |
|
2 |
|
1 |
|
2 |
|
1 |
|
1 |
|
2 |
|
1 |
|
0 |
|
1 |
|
0 |
|
2 |
|
1 |
|
0 |
|
0 |
|
0 |
encoding
latin1

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the 5.0 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

This manual is also suitable for:

Mysql 5.0

Table of Contents