Jump to content

Is an int with a length of 3 different than a tinyint with a length of 3?


tibberous

Recommended Posts

They aren't the same. The value in parentheses after int or tinyint is the display width, not the number of bytes.

 

tinyint is always one byte (-128 to 127) and int is always 4 bytes (-2147483648 to 2147483647).

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.