mysql中几种int数据类型的区别

类型 字节 无符号(unsigned)
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

你可能感兴趣的:(database)