日期:2014-05-18 浏览次数:20618 次
--先 create #tmp() --然后 EXEC ('insert into #tmp from TableA'); --在 select * from #tmp
------解决方案--------------------
EXEC ('select * into #tmp from TableA;select * from #tmp')
------解决方案--------------------
EXEC ('select * into #tmp from TableA
select * from #tmp');
------解决方案--------------------
好像有个全局的临时表吧。