It doesnβt matter if you are not trying to get the most out of your values ββand do not need negative values.
For example, let's say you wanted to keep 0-255.
You can use tinyint, but only if you use it as unsigned.
A lot of the databases that I saw, people donβt bother with optimization and end up with rather large tables, because they just use INTs all the time.
However, if you are talking about int vs unsigned int, there is no performance impact or indirect effect at all.
From a standards perspective, I always use unsigned and only use signed ones when I know that I need negative values.
GeoffreyF67 Jan 25 '09 at 21:39 2009-01-25 21:39
source share