MySQL in int (11) means

References: https://segmentfault.com/a/1190000012479448

Representative int 11 (11) of the width of the character is displayed in the field type is int, no matter how you set the display width, int type can store maximum and minimum values ​​are always fixed, where some of the original paste fragments

The number in the parenthesis does not determines the max and min values that can be stored in the integer field. The max and min values that can be stored are always fixed.
The display width of the column does not affects the maximum value that can be stored in that column. A column with INT(5) or INT(11) can store the same maximum values. Also, if you have a column INT(20) that does not means that you will be able to store 20 digit values (BIGINT values). The column still will store only till the max values of INT.

Guess you like

Origin www.cnblogs.com/jie828/p/11286734.html