update 数据。表之间关联 赋值

update A a INNER JOIN B b ON a.a_id=b.b_id set a.new_name = b.old_name
where a.a_id='123456'

 

posted @ 2017-10-16 09:46  wc_nan  阅读(603)  评论(0编辑  收藏  举报