|
1
381
见 http://dev.mysql.com/doc/refman/8.0/en/numeric-types.html
They each accept no more and no fewer values than can be stored in their respective number of bytes. 这意味着2
三十二
AN中的值
20里
实际上,它只影响
这是MySQL用户常见的困惑源
|
|
|
2
38
类型声明中括号中的数字是
显示宽度
与可以存储在数据类型中的值的范围无关。因为你可以申报
有关可以存储在每个mysql数据类型中的最大值和最小值的列表,请参见 here . |
|
|
3
12
Quote :
|
|
|
4
1
As far as I know, there is only one small difference is when you are trying to insert value which is out of range.
例子:
例子:
|
|
|
5
1
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
|
|
|
6
0
让我们举一个int(10)的例子,一个带有zerofill关键字,一个不带,表如下所示:
让我们插入一些数据:
然后
我们可以看到
结论:
|