Rechercher dans le manuel MySQL
10.3 Specifying Character Sets and Collations
[+/-]
- 10.3.1 Collation Naming Conventions
- 10.3.2 Server Character Set and Collation
- 10.3.3 Database Character Set and Collation
- 10.3.4 Table Character Set and Collation
- 10.3.5 Column Character Set and Collation
- 10.3.6 Character String Literal Character Set and Collation
- 10.3.7 The National Character Set
- 10.3.8 Character Set Introducers
- 10.3.9 Examples of Character Set and Collation Assignment
- 10.3.10 Compatibility with Other DBMSs
There are default settings for character sets and collations at four levels: server, database, table, and column. The description in the following sections may appear complex, but it has been found in practice that multiple-level defaulting leads to natural and obvious results.
CHARACTER SET
is used in clauses that specify a
character set. CHARSET
can be used as a synonym
for CHARACTER SET
.
Character set issues affect not only data storage, but also
communication between client programs and the MySQL server. If you
want the client program to communicate with the server using a
character set different from the default, you'll need to indicate
which one. For example, to use the utf8mb4
Unicode character set, issue this statement after connecting to
the server:
For more information about character set-related issues in client/server communication, see Section 10.4, “Connection Character Sets and Collations”.
Document created the 26/06/2006, last modified the 26/10/2018
Source of the printed document:https://www.gaudry.be/en/mysql-rf-charset-syntax.html
The infobrol is a personal site whose content is my sole responsibility. The text is available under CreativeCommons license (BY-NC-SA). More info on the terms of use and the author.
References
These references and links indicate documents consulted during the writing of this page, or which may provide additional information, but the authors of these sources can not be held responsible for the content of this page.
The author This site is solely responsible for the way in which the various concepts, and the freedoms that are taken with the reference works, are presented here. Remember that you must cross multiple source information to reduce the risk of errors.