Types in MySQL: BigInt(20) vs Int(20)

前端 未结 6 1351
野性不改
野性不改 2020-11-22 16:15

I was wondering what the difference between BigInt, MediumInt, and Int are... it would seem obvious that they would allow for larger n

6条回答
  •  逝去的感伤
    2020-11-22 16:39

    I wanted to add one more point is, if you are storing a really large number like 902054990011312 then one can easily see the difference of INT(20) and BIGINT(20). It is advisable to store in BIGINT.

提交回复
热议问题