使用方法/数学符号:修订间差异
来自康健生活
| 第1行: | 第1行: | ||
== 测试 == | == 测试 == | ||
<math>2^8</math> | |||
{| class="wikitable" | {| class="wikitable" | ||
| 第6行: | 第6行: | ||
! 类型 !! 单位(字节) !! 单位(bit) !! 范围(无符号) !! 范围(带符号) | ! 类型 !! 单位(字节) !! 单位(bit) !! 范围(无符号) !! 范围(带符号) | ||
|- | |- | ||
| TINYINT || 1 || 8 || [0, <math> | | 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] | | SMALLINT || 2 || 16 || [0, <math>2^{16}</math> - 1] || [<math>-2^{15}</math>, <math>2^{15}</math> - 1] | ||