sql判断临时表是否存在

if not (select object_id('Tempdb..#TempTable')) is null
drop table #TempTable
原文地址:https://www.cnblogs.com/dashi/p/4034724.html