时间:2021-07-01 10:21:17 帮助过:3人阅读
UPDATE `nc_goods` SET `goods_price` = `goods_price` +50
2.商品价格个别上调50
UPDATE `nc_goods` SET `goods_price` = `goods_price` +50 where goods_id!=1004 (除了1004这个商品不调价格)
UPDATE `nc_goods` SET `goods_price` = `goods_price` +50 where goods_id=1004
个别运算也是这样写,自己领会
shopnc数据库 批量修改商品价格
标签: