根据已知字段将表A和表B两个表关联,匹配上时将表B中的其他字段数据更新至表A中的对应字段中。

update A

set name=B.name,tel= B.tel

from  USER表  A,
DEPT表  B
where A.ID = b.ID 

 

posted @ 2021-07-14 18:30  顺时针KEY  阅读(152)  评论(0编辑  收藏  举报