--新建临时表 if(object_id('tempdb..#testTable') is null) select uid into #testTable from WebUsers --查询 select * from #testTable --删除临时表 if(object_id('tempdb..#testTable') is not null) drop table #testTable