mysql中int(11)列的大小是多少(以字节为单位)? [英] What is the size of column of int(11) in mysql in bytes?

查看:228
本文介绍了mysql中int(11)列的大小是多少(以字节为单位)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

以mysql为单位的 int(11)列的大小是多少?

What is the size of column of int(11) in mysql in bytes?

和最大值可以存储在这列中吗?

And Maximum value that can be stored in this columns?

推荐答案

无论指定的长度如何,INT总是4个字节。

An INT will always be 4 bytes no matter what length is specified.


  • TINYINT = 1字节(8位)

  • SMALLINT = 2字节(16位)

  • MEDIUMINT = 3字节(24位)

  • INT = 4字节(32位)

  • BIGINT = 8字节( 64位)。

  • TINYINT = 1 byte (8 bit)
  • SMALLINT = 2 bytes (16 bit)
  • MEDIUMINT = 3 bytes (24 bit)
  • INT = 4 bytes (32 bit)
  • BIGINT = 8 bytes (64 bit).

长度只是指定使用mysql命令行客户端选择数据时要显示的字符数。

The length just specifies how many characters to display when selecting data with the mysql command line client.

...最大值为2147483647(签名)或4294967295(未签名)

... and the maximum value will be 2147483647 (Signed) or 4294967295 (Unsigned)

这篇关于mysql中int(11)列的大小是多少(以字节为单位)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆