gpt4 book ai didi

mysql tinyint(1) vs tinyint(2) vs tinyint(3) vs tinyint(4)

转载 作者:IT老高 更新时间:2023-10-28 12:56:05 26 4
gpt4 key购买 nike

Possible Duplicate:
MySql: Tinyint (2) vs tinyint(1) - Which difference?

有什么区别:

  • TinyINT(1)
  • TinyINT(2)
  • TinyINT(3)
  • TinyINT(4)

最佳答案

TinyINT(M) 的范围始终为 -128..+127 有符号或 0..255 无符号。 M是显示宽度。

M indicates the maximum display width for integer types. The maximum display width is 255. Display width is unrelated to the range of values a type can contain, as described in Section 11.2, “Numeric Types”. For floating-point and fixed-point types, M is the total number of digits that can be stored.

来自 http://dev.mysql.com/doc/refman/5.5/en/numeric-type-overview.html

关于mysql tinyint(1) vs tinyint(2) vs tinyint(3) vs tinyint(4),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13120904/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com