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


what size of column of int(11) in mysql in bytes?

and maximum value can stored in columns?

an int 4 bytes no matter length specified.

  • 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).

the length specifies how many characters display when selecting data mysql command line client.

... , maximum value 2147483647 (signed) or 4294967295 (unsigned)


Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -