SQL Server 将一张表的某个字段更新到另一张表中

update t1 set t1.BPTProductId=t2.BPTId
from Bas_ProductImageUrl t1
join Bas_Products t2
on t1.BPTBarCode=t2.BPTBarCode

posted @ 2020-04-26 17:43  Mr靳先生  阅读(3200)  评论(0编辑  收藏  举报