Skip to content
Advertisement

Tag: bit

INT type in SQL max value calculation

I am currently learning SQL. When looking at the INT, I came to the understanding that an INT type is 4 bytes long, which translates to 8 bits each byte, leading to each INT being 32 bits. However, for INT it is said that the max value for unsigned types is (2^32)-1 where the -1 is accounting for 0 value.

Advertisement