What is the difference between int and int (num) in mysql? For example, what is the difference between int (num) and int? It seems that the display width cannot be limited in the actual data insertion, except that the attribute zerofill must occupy the num bit. ------ solution -------------------- there is no difference as an exception, you already know that the tools used to generate the num bound to the zerofill attribute all have a maximum width. what is the difference between the int and int (num) in mysql?
For example, what is the difference between int (num) and int? It seems that the display width cannot be limited in actual data insertion, except that the attribute zerofill must occupy the num bit.
------ Solution --------------------
No difference
As an exception, you already know the num bound to the zerofill attribute.
All generated by tools have a maximum width, which is used to remind you of the maximum number of digits of the value, so that you do not know the overflow
------ Solution --------------------
This is the same as the C-style formatted string. if the limit is exceeded, it is displayed completely.