sql server判断临时表是否存在

来源:互联网 发布:医生 许嵩 知乎 编辑:程序博客网 时间:2024/04/28 23:22

IF object_id('tempdb..#temp'is not null
    
print '存在!'
else
    
print '不存在!'