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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T19:47:37+00:00 2026-06-04T19:47:37+00:00

I just this error when Im updating database and I dont change any of

  • 0

I just this error when Im updating database and I dont change any of the values in the form and submit. I would like to know why and suggestion to correct this error.

sample

SELECT * FROM `table` WHERE `id` = 1

  id    =  1,
 name   = John,
 city   = New York;

UPDATE `table` SET name = 'John', city = 'New York' WHERE id = 1

when updating the database with the same values what you select from database and use affected rows i get 0

  • 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-04T19:47:39+00:00Added an answer on June 4, 2026 at 7:47 pm

    As the manual states:

    For UPDATE statements, the affected-rows value by default is the number of rows actually changed. If you specify the CLIENT_FOUND_ROWS flag to mysql_real_connect() when connecting to mysqld, the affected-rows value is the number of rows “found”; that is, matched by the WHERE clause.

    Therefore, because your UPDATE does not actually change any rows, the default affected-rows value is 0.

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

Sidebar

Related Questions

I just started getting this error today, seemingly out of nowhere. Any one see
I'v just got this error in my app. 2010-04-06 03:58:55.505 EasyPay DPS[6530:207] *** -[NTItems
I just follow this http://www.dotnetcurry.com/ShowArticle.aspx?ID=585 to do the project but have error ambiguity and
I am not overly competent in C++ and this compiler error is just making
I'm just wondering where this syntax documented: 1 > 2 || raise(error) I have
This is driving me crazy , I just keep getting the message error nothing
I have this query and it's not updating into the database. The given where
i just play around with superJumper, and i change something on that. after updating
So just this week I had the opportunity to re-build my development machine and
i'm not sure this problem whether is the bug or it's just this,before i

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.