> 文章列表 > smallint是什么意思(smallint)

smallint是什么意思(smallint)

smallint是什么意思(smallint)

大家好,小杨来为大家解答以上问题,smallint是什么意思,smallint很多人还不知道,现在让我们一起来看看吧!

1、SMALLINT

2、数据类型之一。

3、smallint的特性:

4、需要2字节存储空间的整数。

5、语法:

6、[ UNSIGNED ] SMALLINT

7、smallint的用法:

8、SMALLINT数据类型是一种精确的数值型数据类型,算术运算后精度保持不变。它需要2字节的存储空间。

9、有符号SMALLINT值的范围是2 ^ 15(2 ^ 15代表2的15次幂)到2 ^ 151,即32768到32767。

10、无符号SMALLINT值的范围是从0到2 ^ 161,即从0到65535。INT是4字节的数据,取值范围为-2 ^ 31-2 ^ 31,所以在考虑最大数据范围的前提下,

11、首选smallint类型。

12、标准和兼容性:

13、SQL/92与SQL/92兼容。UNSIGNED关键字是供应商扩展名。

14、Sybase signed data types are compatible with Adaptive Server Enterprise Edition. Adaptive Server Enterprise does not support unsigned data types.

15、另请参见:

16、(same as Internationalorganizations) international organization or integer data type [number]

17、TINYINT data type [number]

18、BIGINT data type [number]

本文到此结束,希望对大家有所帮助。