MySQL has five types of integer data columns, namely TINYINT, SMALLINT, MEDIUMINT, INT and BIGINT. The difference between the two is that the range of values is different and the storage space is different.
Adding an unsigned attribute after an integer data column can suppress negative numbers, and the value starts from 0.
When declaring an integer data column, we can specify a display width M( 1~255), such as INT(5), and specify a display width of 5 characters. If the display width is not specified for it, MySQL will specify a default value for it. The display width is only used for display, and the value range and occupied space cannot be limited. For example, INT(3) will occupy 4 bytes of storage space, and the maximum allowable value will not be 999, but the maximum allowable value of INT integer.