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

  • Home
  • SEARCH
  • 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 3485600
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T10:55:37+00:00 2026-05-18T10:55:37+00:00

MySQL Version 5.0.67 Take a look at this very simple table and tell me

  • 0

MySQL Version 5.0.67

Take a look at this very simple table and tell me if I have found a MySQL bug, I have tried to search for an answer but as you can imagine it’s a bit hard to come up with the right search terms

CREATE TABLE `product` (
  `id` int(11) NOT NULL auto_increment,
  `name` varchar(60) NOT NULL,
  PRIMARY KEY  (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

INSERT INTO `product` VALUES (1, 'jim');
INSERT INTO `product` VALUES (2, 'bob');

From there I can then select the following

SELECT * FROM `product` WHERE `id` = '1';

Obviously this returns a row, but then, so does this

SELECT * FROM `product` WHERE `id` = '1blah';

Erm… WHY? Surely this is wrong or am I going mad? Will crawl the web a bit more before I file a bug report with MySQL.

  • 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-18T10:55:38+00:00Added an answer on May 18, 2026 at 10:55 am

    This happens because of type conversion. Since your column has integer value, ‘1blah’ is converted to 1. Please, see http://dev.mysql.com/doc/refman/5.0/en/type-conversion.html for more details.

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

Sidebar

Related Questions

I have the following table in MySQL (version 5): id int(10) UNSIGNED No auto_increment
Take a look at the MySQL table below called Articles: +----+-----------+---------+------------------------+--------------------------+ | id |
Running the below select on a MySql table containing 1500000 rows will take approximately
I have .frm, ibdata and ib_logfile from my previous version of MySQl and now
I have a pretty large db in MySql, and I need to take backups
I have MySQL with below settings Server version: 5.0.77 MySQL client version: 5.0.41 Protocol
We are currently using Mysql version 5.0 in our application and are thinking of
We are using MySQL version 5.0 and most of the tables are InnoDB. We
What is the trick in MySql (Version 4) to write from PHP thtree Inserts
Are there any 64-bit version RPMs of MySQL GUI Tools?

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.