What is the MAX number if I store int(255) in MySQL?

前端 未结 5 1231
无人及你
无人及你 2020-12-02 23:06

I use int(255) in mysql as my id. Is this long enough? If I got about 1,000,000 records....Thank you.

5条回答
  •  攒了一身酷
    2020-12-02 23:40

    -2147483648 to 2147483647 as per the docs for a signed 32 bit integer value

    The 255 is simply display width and doesn't affect the range of values

提交回复
热议问题