4

I have a rating system that ranges from -1 to 5 through 0.

So i need to store the following values

-1
0
1
2
3
4
5

Which is the best data type considering i want to fetch a total count of each value (not sum) ?

4

1 回答 1

6

我会去TINYINT,记录在这里。它占用 1 个字节的存储空间,其范围是 -128 到 127。

于 2013-05-17T20:24:07.260 回答