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

前端 未结 5 1247
无人及你
无人及你 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:46

    The INT in mysql use 4 byte storage, and range from -2147483648 to 2147483647. If you use unsigned int, the range is 0 to 4294967295.

提交回复
热议问题