mysql中的INT(5)是什么意思? [英] What does INT(5) in mysql mean?
本文介绍了mysql中的INT(5)是什么意思?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我一直认为INT(5)表示最大大小为5位的数字。我试着在里面输入一个巨大的数字,它不知何故被削减到2147483647
I always thought INT(5) means a number which has a max size of 5 digits. I tried entering a huge number inside it and it somehow got cut down to 2147483647
这显然是5位数。那么INT(5)有什么限制?
This obviously isnt 5 digits. So what does INT(5) have a limitation of ?
推荐答案
INT
总是四个字节宽。 5
是显示宽度。
INT
is always four bytes wide. The 5
is the "display width".
这篇关于mysql中的INT(5)是什么意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文