sql删除临时表

if object_id('tempdb..#tempTable') is not null
Begin
    drop table #tempTable
End

原文地址:https://www.cnblogs.com/BlogNetSpace/p/1227896.html