mysql更新语句sql一、单表更新:UPDATE table name SET name.column_name = new_value ...二、多表更新: 1.级联更新 UPDATE product p, product_price pp SET pp.price = pp.price * 0.8 WHERE p.pr
mysql更新语句sql
一、单表更新:
UPDATEtable name SET name.column_name = new_value WHERE name.column_name = some_value;
二、多表更新:
1.级联更新 UPDATE product p, product_price pp SET pp.price = pp.price *0.8WHERE p.productId = pp.productId AND p.dateCreated