MySQL supports the SQL standard integer types INTEGER (or INT) and SMALLINT. As an extension to the standard, MySQL also supports the integer types TINYINT, MEDIUMINT, and BIGINT. The following table shows the required storage and range for each integer type.
MySQL支持标准整型类型INTEGER (or INT) 和 SMALLINT,作为标准的一个扩展,MYSQL也支持TINYINT、MEDIUMINT、BIGINT,下面的表格展示了每种整型的存储范围。
![](https://img.haomeiwen.com/i4097351/9eca152df38756cf.png)
详见 https://dev.mysql.com/doc/refman/8.0/en/integer-types.html
网友评论