Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4537354
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T14:39:50+00:00 2026-05-21T14:39:50+00:00

According to the mySQL Docs a datatype of int (signed) has a range of

  • 0

According to the mySQL Docs a datatype of int (signed) has a range of -2147483648 to 2147483647. When I create a table with phpMyAdmin, and export the table structure it shows the following:

`unit_id` int(11) NOT NULL

Why the (11)? Doesn’t int tell mySQL everything it needs to know?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T14:39:51+00:00Added an answer on May 21, 2026 at 2:39 pm

    This is the optional ‘width’ attribute, which can be used by applications to display the value.

    To quote the documentation:

    MySQL supports an extension for optionally specifying the display
    width of integer data types in parentheses following the base keyword
    for the type. For example, INT(4) specifies an INT with a display
    width of four digits. This optional display width may be used by
    applications to display integer values having a width less than the
    width specified for the column by left-padding them with spaces. (That
    is, this width is present in the metadata returned with result sets.
    Whether it is used or not is up to the application.)

    The display width does not constrain the range of values that can be
    stored in the column. Nor does it prevent values wider than the column
    display width from being displayed correctly. For example, a column
    specified as SMALLINT(3) has the usual SMALLINT range of -32768 to
    32767, and values outside the range permitted by three digits are
    displayed in full using more than three digits.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

according to the reference (http://dev.mysql.com/doc/refman/5.5/en/create-table.html), MySQL 5.5 now supports table and column comments of
I use a partitioned table with a large amount of data. According to MySQL
According to the MySQL manual : For large tables, table locking is often better
i want to create tabs according to data from MySQL database using php for
I want to alter an over 100Gb MySQL table. According to manual MySQL is
According to mysql document Encoding with a 128-bit key length is used, but you
According to the MySQL Certification Guide, when --tab option is used, a SELECT ...
I'm trying to generate a top ten list of locations according to my MySQL
According to the gcc docs , memcmp is not an intrinsic function of GCC.
According to Google search: since MySQL does not support full outer join, it could

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.