sqlserver如何通过两个表关联,修改其中一表中某列的数据?

2024-11-07 06:42:10
推荐回答(2个)
回答1:

select 1,2,3,distinct(b),c from A inner join B where A.1=B.1 and A.2=B.b

回答2:

Update A Set 2 = B.b From B Where A.1 = B.1 And [其他条件]