A 表和B表有一列相同,根据B表相同的一列更新A表对应的列
delete table Aupdate table A set column A=b.column A from table A ainner join table B b on a.column C =b.column Cupdate table A set column B=b.column B from table A ainner join table B b on a.column C =b.column Cupdate table A set column D =b.column D from table A ainner join table B b on a.column C =b.column Cselect * from dbo.table A order by column ID