The role of M in MySQL Int (m)

Source: Internet
Author: User

Int (m) This m represents the width of the display

Function: In the front-end to display an integer type of data, the database set the corresponding data type int (4), but the data written less than 4 bits, then the left padding space (if Zerofill is turned on, then fill 0), to ensure enough 4 bits, Then in the front-end display when the character is corresponding to the 4 width of the requirements.

It is emphasized in parentheses that the use of this M mainly depends on the needs of your program (Whether it is used or not are up to the application)

The display width does not limit the range of values that can be stored in the column.

This is according to the official understanding above, see: http://dev.mysql.com/doc/refman/5.6/en/numeric-type-attributes.html


The role of M in MySQL Int (m)

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.