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 4054130
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T14:32:08+00:00 2026-05-20T14:32:08+00:00

I currently have a few tables in my MySQL database where I declare the

  • 0

I currently have a few tables in my MySQL database where I declare the id field to be of type SMALLINT(6) (is this correct as SMALLINT only goes to 65535 [length of 5]). I have read here under integer types that when it is UNSIGNED the range increases in the positive to 65535. How will this affect my database if I specifically change the id field’s attributes to UNSIGNED? Also, are there problems when going from SMALLINT to MEDIUMINT?

My database type is MyISAM.

  • 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-20T14:32:09+00:00Added an answer on May 20, 2026 at 2:32 pm

    You should be fine to switch from SMALLINT to MEDIUMINT – no data will be lost.

    A normal integer in MySQL can be any number between a lower limit and an upper limit. With a signed integer, the lower limit is a negative number and the upper is a positive number. A SMALLINT, signed, can be between -32768 and 32767. An unsigned integer, however, is only positive. The lower limit is zero, and the upper limit is 65535.

    I usually use INT for IDs, though. I’d rather have an upper limit to an ID field so high that it should never be reached.

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

Sidebar

Related Questions

I currently use enums as TINYINTs in MySQL database. My tables have a few
Currently I have a DB structure in MySQL with a few dozen tables with
Currently I have a simple knockoutJS object, with a few observables. But this object
So the scenario is this: I have a mySQL database on a local server
We currently have a few products for which the licensing depends on the computer
I currently have an asp:GridView that displays a few BoundFields and then one asp:TemplateField
I currently have a python script that runs every few minutes and picks up
I'm currently using Look&Feel for my application. I have a few problems: 1. When
I have developed a few Delphi Win32 (currently using D2007) applications, which revolve around
I'm currently using QDataStream to serialize my classes. I have quite a few number

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.