sql2005太笨,求简化SQL codeinsert into TestTb(userxxid,deptxxid,grade,co_code,fo_co_code,modidate,mo
sql2005太笨,求简化
SQL code
insert into TestTb(userxxid,deptxxid,grade,co_code,fo_co_code,modidate,modxxuserid)values((select userxxid from #tb1),(select deptxxid from #tb2),(select grade from #tb1),(select co_code from #tb1),(select fo_co_code from #tb2),(select modidate from #tb1),(select modxxuserid from #tb1))