连表修改语句

--update a set a.Billcaption=b.billcaption
--from tb_BillCodeRelation a left join tb_billprintmessage b on a.CodeName=b.bankname


update 表1别名 set 表1别名.需要修改的字段=表2别名.表2字段值

from 表1 表1别名 left join 表2 表2别名 on 表1.字段=表2.字段

posted @ 2017-07-16 22:35  森林逗留者  阅读(588)  评论(0编辑  收藏  举报