标签:
UPDATE product p INNER JOIN productPrice pp ON p.productId = pp.productId SET pp.price = pp.price * 0.8, p.dateUpdate = CURDATE() WHERE p.dateCreated < ‘2004-01-01‘
mysql 多表联合更新
原文地址:http://www.cnblogs.com/changdiao/p/5863360.html