Jump to content

int lenght?


Liquid Fire

Recommended Posts

The whole concept of int "length" has always been annoying... bigint(20) is particularly silly.  The refman says the following:

 

Another extension is supported by MySQL for optionally specifying the display width of integer data types in parentheses following the base keyword for the type (for example, INT(4)). This optional display width is used to display integer values having a width less than the width specified for the column by left-padding them with spaces.

 

So basically, pick the right int -- TINYINT, SMALLINT, MEDIUMINT, INT, BIGINT -- the default "length" mysql assigns is the max width anyway.

Link to comment
https://forums.phpfreaks.com/topic/70988-int-lenght/#findComment-356948
Share on other sites

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.