Loading...
MySQL 9.5 Reference Manual 9.5의 12 Character Sets, Collations, Unicode의 한국어 번역본입니다.
아래의 경우에 피드백에서 신고해주신다면 반영하겠습니다.
감사합니다 :)
Table of Contents
12.1 Character Sets and Collations in General
12.2 Character Sets and Collations in MySQL
12.2.1 Character Set Repertoire
12.2.2 UTF-8 for Metadata
12.3 Specifying Character Sets and Collations
12.3.1 Collation Naming Conventions
12.3.2 Server Character Set and Collation
12.3.3 Database Character Set and Collation
12.3.4 Table Character Set and Collation
12.3.5 Column Character Set and Collation
12.3.6 Character String Literal Character Set and Collation
12.3.7 The National Character Set
12.3.8 Character Set Introducers
12.3.9 Examples of Character Set and Collation Assignment
12.3.10 Compatibility with Other DBMSs
12.4 Connection Character Sets and Collations
12.5 Configuring Application Character Set and Collation
12.6 Error Message Character Set
12.7 Column Character Set Conversion
12.8 Collation Issues
12.8.1 Using COLLATE in SQL Statements
12.8.2 COLLATE Clause Precedence
12.8.3 Character Set and Collation Compatibility
12.8.4 Collation Coercibility in Expressions
12.8.5 The binary Collation Compared to _bin Collations
12.8.6 Examples of the Effect of Collation
12.8.7 Using Collation in INFORMATION_SCHEMA Searches
12.9 Unicode Support
12.9.1 The utf8mb4 Character Set (4-Byte UTF-8 Unicode Encoding)
12.9.2 The utf8mb3 Character Set (3-Byte UTF-8 Unicode Encoding)
12.9.3 The utf8 Character Set (Deprecated alias for utf8mb3)
12.9.4 The ucs2 Character Set (UCS-2 Unicode Encoding)
12.9.5 The utf16 Character Set (UTF-16 Unicode Encoding)
12.9.6 The utf16le Character Set (UTF-16LE Unicode Encoding)
12.9.7 The utf32 Character Set (UTF-32 Unicode Encoding)
12.9.8 Converting Between 3-Byte and 4-Byte Unicode Character Sets
12.10 Supported Character Sets and Collations
12.10.1 Unicode Character Sets
12.10.2 West European Character Sets
12.10.3 Central European Character Sets
12.10.4 South European and Middle East Character Sets
12.10.5 Baltic Character Sets
12.10.6 Cyrillic Character Sets
12.10.7 Asian Character Sets
12.10.8 The Binary Character Set
12.11 Restrictions on Character Sets
12.12 Setting the Error Message Language
12.13 Adding a Character Set
12.13.1 Character Definition Arrays
12.13.2 String Collating Support for Complex Character Sets
12.13.3 Multi-Byte Character Support for Complex Character Sets
12.14 Adding a Collation to a Character Set
12.14.1 Collation Implementation Types
12.14.2 Choosing a Collation ID
12.14.3 Adding a Simple Collation to an 8-Bit Character Set
12.14.4 Adding a UCA Collation to a Unicode Character Set
12.15 Character Set Configuration
12.16 MySQL Server Locale Support
MySQL은 다양한 문자 집합(character set)을 사용하여 데이터를 저장하고, 다양한 정렬 규칙(collision)에 따라 비교를 수행할 수 있도록 하는 문자 집합 지원을 포함합니다. 기본 MySQL 서버 문자 집합과 정렬 규칙은 utf8mb4 및
utf8mb4_0900_ai_ci이지만, 서버, 데이터베이스, 테이블, 열, 문자열 리터럴 수준에서 문자 집합을 지정할 수 있습니다. 데이터와 애플리케이션의 상호운용성과 미래 대비를 극대화하려면 가능한 한 utf8mb4 문자 집합을 사용할 것을 권장합니다.
참고
UTF8은 utf8mb3의 deprecated synonym이며, 향후 MySQL 버전에서 제거될 것으로 예상해야 합니다. 대신 utfmb3 또는 (가능하면) utfmb4를 지정하십시오.
이 chapter에서는 다음 주제를 다룹니다:
character set과 collation이 무엇인지.
character set 할당을 위한 다중 레벨 기본 system.
character set과 collation을 지정하는 syntax.
영향을 받는 function 및 operation.
Unicode support.
사용 가능한 character set과 collation, 그리고 관련 note.
error message에 사용할 language 선택.
요일 및 월 이름에 사용할 locale 선택.
character set 관련 이슈는 데이터 저장에만 영향을 미치는 것이 아니라 client program과 MySQL server 간의 통신에도 영향을 미칩니다. client program이 기본값과 다른 character set을 사용하여 server와 통신하도록 하려면, 사용할 character set을 지정해야 합니다. 예를 들어, latin1 Unicode character set을 사용하려면, server에 연결한 후 다음 statement를 실행합니다:
1SET NAMES 'latin1';
application 사용을 위한 character set 설정 및 client/server 통신에서 character set 관련 이슈에 대한 자세한 내용은 Section 12.5, “Configuring Application Character Set and Collation” 및 Section 12.4, “Connection Character Sets and Collations”을 참조하십시오.
11.7 Comments
12.1 Character Sets and Collations in General