Mysql Multiplication Query

I have a table called a product containing a field called price, and I just want to double the price for each product. Could you give me a hand with an SQL statement that I can run in PHP myAdmin, please.

+7
source share
3 answers
update products set price = price * 2; 
+13
source

it's as simple as

 UPDATE products SET price = price*2; 
+6
source
 UPDATE products SET price = price + price; 

Didn't want to use multiplication: P

+3
source

All Articles