--正确的临时表删除操作
if object_id('tempdb..#temp') is not null
Begin
drop table #temp
End
新建临时表
select * into #temp from table2
--正确的临时表删除操作
if object_id('tempdb..#temp') is not null
Begin
drop table #temp
End
新建临时表
select * into #temp from table2