判断sqlserver临时表等临时资源是否存在时间:2023-03-10 08:46:06 if exists(select * from tempdb..sysobjects where id=object_id('tempdb..#TEMP')) drop table #TEMP