I have this:
... and I want to change the pricerange of "id 2" from 2 to 1.
I tried this, but it didn't work:
Does anyone know how it can be done?
+------+---------------+------------+
| id | primarycolour | pricerange |
+------+---------------+------------+
| 1 | black | 1 |
| 2 | brown | 2 |
+------+---------------+------------+
| id | primarycolour | pricerange |
+------+---------------+------------+
| 1 | black | 1 |
| 2 | brown | 2 |
+------+---------------+------------+
I tried this, but it didn't work:
Code:
UPDATE products(pricerange) where id=2 VALUES(1);
Comment