标签:
1.商品价格统一上调50
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
个别运算也是这样写,自己领会
标签:
原文地址:http://www.cnblogs.com/lemonphp/p/5222334.html