27,579
社区成员
发帖
与我相关
我的任务
分享
update a
set a.身份证=b.身份证,a.部门=b.部门
from tb a,
(select * from OpenRowSet('MICROSOFT.JET.OLEDB.4.0','EXCEL 8.0;HDR=YES;IMEX=2;DataBase=d:\test.xls',[sheet1$])) b
where
a.员工号=b.员工号
update tb
set 部门=b.部门
from tb t,ecl b ---修改一下
where t.身份证号=e.身份证号
update tb
set 部门=b.部门
from tb t,ecl e
where t.身份证号=e.身份证号