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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T05:03:35+00:00 2026-05-15T05:03:35+00:00

All, I’m wondering if this is a MySQL bug, but since I’ve seen others

  • 0

All,

I’m wondering if this is a MySQL bug, but since I’ve seen others playing with larger numbers than this, I’m thinking I’m doing something wrong here.

Here is my table structure for the table I’m querying:

mysql> describe ipspace6\G
*************************** 1. row ***************************
Field: id
Type: decimal(39,0) unsigned
Null: NO
Key:
Default: NULL
Extra:
*************************** 2. row ***************************
Field: addr
Type: decimal(39,0) unsigned
Null: NO
Key: PRI
Default: 0
Extra:
*************************** 3. row ***************************
Field: netmask
Type: decimal(39,0) unsigned
Null: NO
Key:
Default: 0
Extra:
*************************** 4. row ***************************
Field: subnet
Type: int(4)
Null: NO
Key:
Default: NULL
Extra:

Now, I run a simple SELECT statement against the “id” column:


mysql> SELECT id FROM ipspace6 WHERE id='50552019118453823914642686339427860480';
+----------------------------------------+
| id |
+----------------------------------------+
| 50552019118453823730175245602332344320 |
| 50552019118453823730175245602332344320 |
| 50552019118453823914642686339427860480 |
| 50552019118453823914642686339427860480 |
+----------------------------------------+

…What the heck is going on here? Two of these results are valid, and two definitely are not.

It’s not like I’m doing some super-complex nested query or anything, this is simple stuff, and it’s driving me insane.

Help, anyone?

  • 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-15T05:03:36+00:00Added an answer on May 15, 2026 at 5:03 am

    Remove the quotes. When you operate with any kind of numerics you should always use numbers, not strings.

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

Sidebar

Related Questions

All this might look too trivial but read it through - I have simple
All is in the question i have tried this : $('#my-div').css('box-shadow'); but it returns
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
all. We're trying to get some intersect collisions working, but the problem experience is
All, Apologies in advance - this question might be too open-ended for SO. Anyway...
All browsers except Chrome do display this style: .my-checkbox { width: 20px; height:20px; color:#fff;
All , Say you have a code in a View like this. <img src='@Url.Action(GetCaptchaImg)'
All the talk on WP7 resolution = 800x480. I can create more than 480
This could be a duplicate question, but I have no idea what search terms
all.I'm a beginner of Mysql and I have one simple question here. I want

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.