2014-04-23 26 views
2

我在MySql中創建一個表,我遇到了數據類型爲mediumint的列,然後是括號中的數字。這個數字代表什麼?mediumint(10)中的數字表示什麼?

https://dev.mysql.com/doc/refman/5.7/en/integer-types.html表示無符號的mediumint可以取最大值16777215,那麼如果具有不同大小的列mediumint(6)或mediumint(10),它有什麼不同?

+2

閱讀本https://dev.mysql.com/doc/ refman/5.7/EN /數字型attributes.html。在這裏你可以回答你的問題 – mleko

回答