select * into #temppay from t_pay where f_paymonth='200610'
select * from t_worker a left join #temppay b on a.f_workercode=b.f_workercode where a.f_state='1'
这两句语言怎么合并成一句?临时表可以去掉