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

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

posted on 2014-03-12 11:55  洞幺人生  阅读(155)  评论(0)    收藏  举报