判断sqlserver临时表等临时资源是否存在

 if exists(select * from tempdb..sysobjects where id=object_id('tempdb..#TEMP'))
  drop table #TEMPtable

相关文章
相关标签/搜索