小
小田
Unregistered / Unconfirmed
GUEST, unregistred user!
declare @sqlstring nvarchar(3000)
if exists(select name from tempdb..sysobjects where name like '#aaa%')
drop table #aaa
set @sqlstring='select clid into #aaa from dbo.zl group by clid'
exec (@sqlstring)
select * from #aaa
请问:为什么#aaa临时表会无效的呢?
if exists(select name from tempdb..sysobjects where name like '#aaa%')
drop table #aaa
set @sqlstring='select clid into #aaa from dbo.zl group by clid'
exec (@sqlstring)
select * from #aaa
请问:为什么#aaa临时表会无效的呢?