Jump to content

numeric type attribute


jimfog

Recommended Posts

I just read http://dev.mysql.com/doc/refman/5.6/en/numeric-type-attributes.html this article here.

 

I clearly states that the display width of a column is optional.

 

Nonetheless,I have used it in all the numeric type cols of my database.

 

In the article is says that it is used to pad the number with space and the question is where this might be useful.

Link to comment
Share on other sites

"It seems to only be there for programs like the command line client" see third footnote:

http://stackoverflow.com/questions/5562322/difference-between-int-and-int3-data-types-in-my-sql

 

I also read another link that made a ref to the command line.

 

for more links google this: integer data types mysql purpose

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...