MySQL中int类型的最大长度是多少

更新时间:02-10 教程 由 忘爱。 分享

摘要:tt类型的最大长度。

1. MySQL数据类型的长度限制

MySQL中的数据类型分为数值型、日期型、字符串型、二进制型等多种类型,每种类型都有其自身的长度限制。以下是MySQL数据类型的长度限制:

1) 数值型yint:1 byteallint:2 bytesediumint:3 bytest:4 bytest:8 bytes

- float:4 bytes

- double:8 bytesal:对于DECIMAL(M,D)类型,M表示整数部分的最大位数,D表示小数部分的最大位数。DECIMAL类型的长度为M+2。

2) 日期型

- date:3 bytese:3 bytese:8 bytesestamp:4 bytes

3) 字符串型

- char:0-255 bytes

- varchar:0-65535 bytes

- text:0-65535 bytes

- blob:0-65535 bytes

4) 二进制型ary:0-255 bytesary:0-65535 bytes

- blob:0-65535 bytes

t类型的最大长度

ttt类型的最大长度为10位数字。

signedtsignedt类型的最大长度为10位数字。

总结:tsignedt类型的无符号取值范围。

声明:关于《MySQL中int类型的最大长度是多少》以上内容仅供参考,若您的权利被侵害,请联系13825271@qq.com
本文网址:http://www.25820.com/tutorial/14_2145796.html