Description of the character set and collation in MySQL

Source: Internet
Author: User

The database needs to accommodate a variety of languages and characters to support different character sets (Character set), and each character set has its own collation (Collation).

One. Character Set

Character set, which is a collection of encodings used to define characters in a database. Common character sets: Utf-8 GBK and so on.

Two. Sorting rules

Collations in the database are used to define a rule in which characters are sorted and compared. The following are common:
(1) Utf8_general_cs and utf8_general_ci (suffix "_cs" or "_ci" mean case-sensitive and case-insensitive (box sensitive & Case insensitve))
(2) Utf8_bin specifies that each string is stored in binary encoding, case sensitive, and can store binary content directly

Description: A collation that refers to whether a character comparison is case-sensitive and is compared by character encoding or directly using binary data.

See also:

Http://www.cnblogs.com/tlz888/p/7067835.html

Description of the character set and collation in MySQL

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.