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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T22:36:14+00:00 2026-06-03T22:36:14+00:00

I would like to know what is the idea behind the database value type.

  • 0

I would like to know what is the idea behind the database value type. Except the use of space and performance, why the table field need to specific in whether int, float or other type. Is this any result for that?

  • 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-06-03T22:36:15+00:00Added an answer on June 3, 2026 at 10:36 pm

    Certain functions in MYSQL will act different depending on the data type. For example, if the MAX function is passed string values, it will return the maximum STRING value based on character, and if you were expecting it to sort values based on their numeric value, you’d be out of luck. Yes, MYSQL will sometimes cast things to numeric values when it needs to, but you can’t count on it. This is because strings are fundamentally different from numeric values – and are treated differently.

    Also, MYSQL has less data types than you think – a lot are simply aliases that dictate maximum storage and such. SQLite3 (used in iOS and other stuff) only has 5 data types – Null, Integer, Real, Text, and Blob.

    Finally, you said ignoring performance, but performance is very important in MYSQL, especially with large data sets. When checking 100000 rows to get the largest value, why would you want to have to cast each one from a number to a string, if they ought to have been a number in the first place?

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

Sidebar

Related Questions

I would like to know if it's a good idea to mix Moustache or
Would like to know the c# code to actually retrieve the IP type: Static
I would like to know if you could help me to know the idea
I would like to know if it's a good idea to store a delegate
I would like to know your opinion on whether it is a good idea
i would like know some reference. I know i can googling it. but prefer
Would like to know what a programmer should know to become a good at
Would like to know how to integarate cruise control with maven? Cruise Control comes
Would like to know how to hide an div after a set of css3
I would like to know what guys are using to make diagram of your

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.