问题描述:

I need a query for MySQL...

I need change the price divided by 2 .. something like

Table name "Armor"

ID NAME PRICE

----------------

1 Armor 200

...and query should divide the price by 2.. Like the following (which doesn't work):

UPDATE `armor`

SET `PRICE` = 'PRICE/2'

网友答案:

Remove the quotes: UPDATE armor SET PRICE=PRICE/2

相关阅读:
Top