第一次用
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....
转载于:https://www.cnblogs.com/xh831213/archive/2010/01/28/1658283.html