MySQL Database data type

Source: Internet
Author: User

CHAR (m) fixed-length string,m<=255; processing speed is fast;

varchar (m) variable-length string,m<=255;

int (m) integer, between 214783647 and 214783648, using unsigned, which means 0 to 4294967295;

Float (m,d) floating-point type, M, sum of length digits, d, number of digits to the right of the decimal point, float (4,2) 88.88 valid, 100.88, 10.4242 invalid data;

Date data

Text/blog can be saved to 65,535 characters, the difference, text is not case-sensitive, the blog is sensitivity to case;

Set multi-data value combination, maximum 64 specified data values, any data is a valid value for that data type, both Apple and Paer are valid values; Ex:set ("Apple", "Paer") is not null;

The enum is basically the same as set, but only one valid value, girl or Boy;ex:set ("Girl", "boy") is not null;

MySQL Database data type

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.