mysql 全表 update_转mysql 多表 update sql语句总结
mysql多表 update 有几种不同的写法。假定我们有两张表,一张表为Product表存放产品信息,其中有产品价格列Price;另外一张表是ProductPrice表,我们要将ProductPrice表中的价格字段Price更新为Price表中价格字段的80%。在MySQL中我们有几种手段可以做到这一点,一种是update table1 t1, table2 ts ...的方式:UPDATE...