Jump to content

Update but leave whats already saved


nightkarnation

Recommended Posts

Hello!

My doubt is the following...i want to update something but not erase whats already stored just add more into it...i could do this with INSERT INTO but i need to use the WHERE statement...

 

Here's the idea:

UPDATE `nkSoft_clientProjects` SET description = description + 'Blah blah new description' WHERE name = 'Diego' AND project = 'Software Test' 

 

Obviously this code is not giving the expected value...description is giving a new value of 0...

 

Any way to get around this through the UPDATE code?

and/or through the INSERT INTO using the WHERE statement?

 

Thanx in advance!

Cheers,

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.