0

MySQLバージョン5.1.63-cllphpmyadminを使用して編集する

だから私はこのテーブルps_layered_price_indexを持っています私は列を編集/更新したいです:-

price_min AND
price_max 
(updating the current value+10)

where column(id_product) = ALL
4

1 に答える 1

1

テーブルのすべての行を更新する場合は、次のように試すことができます。

UPDATE 
 ps_layered_price_index
SET 
 price_min = price_min + 10,
 price_max = price_max + 10

単一行の場合:

UPDATE 
 ps_layered_price_index
SET 
 price_min = price_min + 10,
 price_max = price_max + 10
WHERE 
 id_product = 87
于 2012-07-10T15:57:29.350 に答える