Jump to content

Update table


Bee

Recommended Posts

Hi,

I am getting mad here! I don't know why this stuff just don't work.

I am trying to update this table. When I set the condition to UserID which is the primary key, it does not change it and it returns this message even if I supply an existing UserID:
Query OK, 0 rows affected
Rows matched: 0 Changed: 0 Warnings: 0


If The condition was something else like Surname, Email...etc, it works fine.

The primay key (UserID) is auto_increment!

[code]mysql> UPDATE PersonalDetails SET Initials="Miss", Surname="Something", Forename="Maja", Address="01 Co", PostCode="212", TelHome="21", TelMobile="121", Email="person@hotmail.com" WHERE UserID=14; [/code]

Thanks very much in advance.

Bee
Link to comment
Share on other sites

[!--quoteo(post=350920:date=Mar 2 2006, 06:39 AM:name=Bee)--][div class=\'quotetop\']QUOTE(Bee @ Mar 2 2006, 06:39 AM) [snapback]350920[/snapback][/div][div class=\'quotemain\'][!--quotec--]
Hi,

I am getting mad here! I don't know why this stuff just don't work.

I am trying to update this table. When I set the condition to UserID which is the primary key, it does not change it and it returns this message even if I supply an existing UserID:
Query OK, 0 rows affected
Rows matched: 0 Changed: 0 Warnings: 0
If The condition was something else like Surname, Email...etc, it works fine.

The primay key (UserID) is auto_increment!

[code]mysql> UPDATE PersonalDetails SET Initials="Miss", Surname="Something", Forename="Maja", Address="01 Co", PostCode="212", TelHome="21", TelMobile="121", Email="person@hotmail.com" WHERE UserID=14; [/code]

Thanks very much in advance.

Bee
[/quote]

And this UserID with "14" exists =) ?
Link to comment
Share on other sites

[!--quoteo(post=350923:date=Mar 2 2006, 07:04 AM:name=nezbie)--][div class=\'quotetop\']QUOTE(nezbie @ Mar 2 2006, 07:04 AM) [snapback]350923[/snapback][/div][div class=\'quotemain\'][!--quotec--]
And this UserID with "14" exists =) ?
[/quote]


Yes, it does!
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.