﹎斑斓的梦ぷ

愿你眼中总有光芒,活成你想要的模样.

导航

Mysql - Int类型

几种整形数据类型的长度
----------------------------------------------------------------------------------------------------
类型 占用空间(字节) 最小值(带符号的/无符号的) 最大值(带符号的/无符号的)
----------------------------------------------------------------------------------------------------
TINYINT 1 -128 127
0 255
----------------------------------------------------------------------------------------------------
SMALLINT 2 -32768 32767
0 65535
----------------------------------------------------------------------------------------------------
MEDIUMINT 3 -8388608 8388607
0 16777215
----------------------------------------------------------------------------------------------------
int 4 -2147483648 2147483647
0 4294967295
----------------------------------------------------------------------------------------------------
BIGINT 8 -9223372036854775808 9223372036854775807
0 18446744073709551615
----------------------------------------------------------------------------------------------------
注:1字节=8位

posted on 2018-05-25 13:59  ﹎斑斓的梦ぷ  阅读(124)  评论(0编辑  收藏  举报