SQL server中将一个表中一列数据更新到另一个表中
如图,如何将表2中的考勤工资相对应的加入到表1中,,,,求解。。。。
SQL Server
------解决方案-------
update [表1]
set [考勤工资] = [表2].[考勤工资]
from [表2] where [表1].[考勤类型] = [表2].[考勤类型]
update [表1]
set [考勤工资] = [表2].[考勤工资]
from [表2] where [表1].[考勤类型] = [表2].[考勤类型]