判斷sqlserver臨時表等臨時資源是否存在

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

相關文章
相關標籤/搜索