My field in the database will contain only 3 possible values: 0, 1 and 2. So, I’m wondering what datatype should I use? I found this and it seems that I should use tinyint(1), but that has range from -127 to 126, so am wondering is that my choice or is there actually something better?
Share
tinyint(1) unsignedis probably the right fit for this