int(11) vs. int(anything else)

前端 未结 7 2107
借酒劲吻你
借酒劲吻你 2020-11-27 15:19

I\'m new to web programming and doing different tutorials that I can find on the net.

I did my research and found out that in int(11), 11 is the maximum display widt

7条回答
  •  盖世英雄少女心
    2020-11-27 15:44

    The number is just a representational option called "display width". It may be used by some applications to pad the field when displaying numeric datatypes.

    The int size is neither bits nor bytes. It's just the display width, that is used when the field has ZEROFILL specified.

    This blog explains the meaning of int(size) in MySQL.

提交回复
热议问题