Jump to content

MySql Int data type


Mateobus

Recommended Posts

I thought that in a MyISAM table, if i use an int type and specify a length of 4, it will allow values up to 9999.  This is wrong apparently as the table only help up to 127.  So what is this length based on?  How big will an int of length 10 hold?3?  Thanks for the help.
Link to comment
Share on other sites

No. Tinyint can only hold an Integer that is between -128 and 127 when it is signed. If its unsigned it can hold an integer between 0 and 255
Have a look at the Data Types column in this [url=http://www.ilovejackdaniels.com/mysql_cheat_sheet.png]cheat sheat[/url] to see what each data type can hold
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.