第一次用
select into #temp from
后来用
insert into #temp select
if object_id('tempdb..#tmp') is null
select into #temp ....
else
insert into #temp....
第一次用
select into #temp from
后来用
insert into #temp select
if object_id('tempdb..#tmp') is null
select into #temp ....
else
insert into #temp....