MySQL provides an extension that allows you to specify the display width along with the INT datatype. The display width is wrapped inside parentheses following the INT keyword e.g., INT(5) specifies an INT with the display width of five digits.
It is important to note that the display width attribute does not control the value ranges that the column can store. The display width attribute is typically used by the applications to format the integer values. MySQL includes the display width attribute as the metadata of the returned result set.
补 0 是对的,但你需要给这列设置
UNSIGNED ZEROFILL
才会填充。