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

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

    If unisgned, from 0 to 4 294 967 295, so that is more than eough.

    More info in mysql docs.

提交回复
热议问题