判断临时表是否存在(临时表的删除)

2025-03-23 10:33:36
推荐回答(1个)
回答1:

--下面以临时表#temp为例,判断它是否存在,存在就删除它
IF OBJECT_ID('tempdb..#temp') is not null
drop table #temp