Jump to content

Updating field data


Freedom-n-Democrazy

Recommended Posts

I have this:

+------+---------------+------------+

| id  | primarycolour | pricerange |

+------+---------------+------------+

| 1    | black        | 1          |

| 2    | brown        | 2          |

+------+---------------+------------+

... and I want to change the pricerange of "id 2" from 2 to 1.

 

I tried this, but it didn't work:

UPDATE products(pricerange) where id=2 VALUES(1);

 

Does anyone know how it can be done?

Link to comment
https://forums.phpfreaks.com/topic/246947-updating-field-data/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.