update t1
set t1.Act_flg='N'
from STG_EmployeeMaster t1
where t1.GPN NOT IN (#Temp_EmployeeMaster.GPN) t2
获取错误:'t2'附近的语法不正确。
答案 0 :(得分:1)
update t1
set t1.Act_flg='N'
from STG_EmployeeMaster t1
where t1.GPN NOT IN (select GPN from #Temp_EmployeeMaster)