I have a table called products containing a field called price and I simply want to double the price on every product. Could you give me a hand with an SQL statement I can run within PHP myAdmin please.
Asked
Active
Viewed 2.8k times
3 Answers
5
UPDATE products SET price = price + price;
Didn't want to use multiplication :P

hjpotter92
- 78,589
- 36
- 144
- 183
-
@ErdalG. That is a good question. (But usually it doesn't matter) – Annabel Mar 09 '17 at 11:43
-
@Annabel Usually not, indeed. It's pure curiosity :) – Erdal G. Mar 13 '17 at 11:01