mysql联表更新使用join

update TableA  as a inner join TableB as b on a.order_id=b.order_id set a.last_time='2018-01-01' where b.channel_ordersn='18';

原文地址:https://www.cnblogs.com/xsj1989/p/8431299.html