使用方法/数学符号:修订间差异
来自康健生活
| 第1行: | 第1行: | ||
== 测试 == | == 测试 == | ||
<math> | {| class="wikitable" | ||
|- | |||
<math> | ! 类型 !! 单位(字节) !! 单位(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] | |||
|} | |||
<br> | <br> | ||