常用系统表相关的操作

1:判断某个临时表是否存在

if object_id('tempdb..#tempTable') is not null 
Begin
       DROP TABLE  #tempTable
End

  

原文地址:https://www.cnblogs.com/volts0302/p/5274700.html