MySQL text string type

Source: Internet
Author: User
Tags mysql text

String types are used to store string data, in addition to the string data that can be stored, as well as other data, compared to slices and sound binary data.

Type name Description Storage requirements
CHAR (M) Fixed-length text strings 1-255 bytes
VARCHAR (M) Variable-Length text string 1-65,535 bytes
Tinytext Very small text string 1-256 bytes
TEXT A small text string 1-65,535 bytes
Mediumtext Medium-sized text string 1-16,777,216 bytes
Longtext A large text string 1-4,294,967,296 bytes
Enum Enumeration type, only one enumeration string value 1-2 bytes, depending on the number of enumeration values (max. 65535)
SET A setting in which a string object can have 0 or more set members 1,2,3,4,8 bytes, depending on the number of members of the collection (up to 64 members)

MySQL text string type

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.