2

I'm creating a table in MySql and I came across columns with datatype as mediumint followed by a number in parenthesis. What does this number denote?

https://dev.mysql.com/doc/refman/5.7/en/integer-types.html says that unsigned mediumint can take a max value of 16777215, so how does it differ if have columns with different sizes mediumint(6) or mediumint(10) ?

Marc Alff
  • 7,936
  • 30
  • 58
rocx
  • 285
  • 2
  • 5
  • 13
  • 2
    read this https://dev.mysql.com/doc/refman/5.7/en/numeric-type-attributes.html. Here you have answer for your question – mleko Apr 23 '14 at 07:40

1 Answers1

0

I suppose here in an answer:

http://dev.mysql.com/doc/refman/5.6/en/numeric-type-attributes.html

so difference is only in formatting output, nothing else...

a_horse_with_no_name
  • 497,550
  • 91
  • 775
  • 843
Nickolay Komar
  • 240
  • 1
  • 8