MySql 实现多表更新
MySql多表更新Mysql实现多表更新的几种不同方法:
1)update table1 t1, table2 t2 set…的方式:update table1 t1, table2 t2
set t1.price = t1.price * 0.8, t2.num = 100
where t1.order_id= t2.order_id
and t1.create_date < '2017-08-
原创
2017-08-21 15:12:51 ·
436 阅读 ·
0 评论