update tb_工资日报_b set (工序,gztype,fcode,scthick,bxthrj,drscl,drcp,gs,dj)=(select 工序,gztype,fcode,scthick,bxthrj,drscl,drcp,gs,dj from #z_tmp where id=@3nRec) where jlsjh=@KkSjh
MS SQL的语法,不能这样写的
多表关联更新要这样
update t1 set t1.字段1=t2.字段1,t1.字段2=t2.字段2,.........
from 表1 t1,表2 t2
where t1.id=t2.id