MySQL:修订间差异
来自康健生活
| 第54行: | 第54行: | ||
|} | |} | ||
{| class="wikitable" | |||
|- | |||
! 类型 !! 单位(字节) !! 单位(bit) !! 范围(无符号) !! 范围(带符号) | |||
|- | |||
| TINYINT || 1 || 8 || [0, <math>2^8</math> - 1] || [<math>-2^7</math>, <math>2^7</math> - 1] | |||
|- | |||
| SMALLINT || 2 || 16 || [0, <math>2^{16}</math> - 1] || [<math>-2^{15}</math>, <math>2^{15}</math> - 1] | |||
|- | |||
| MEDIUMINT || 3 || 24 || [0, <math>2^{24}</math> - 1] || [<math>-2^{23}</math>, <math>2^{23}</math> - 1] | |||
|- | |||
| INT || 4 || 32 || [0, <math>2^{32}</math> - 1] || [<math>-2^{31}</math>, <math>2^{31}</math> - 1] | |||
|- | |||
| BIGINT || 8 || 64 || [0, <math>2^{64}</math> - 1] || [<math>-2^{63}</math>, <math>2^{63}</math> - 1] | |||
|} | |||
{| class="wikitable" | {| class="wikitable" | ||