Sql Server查找临时表,并删除:
if exists(select * from tempdb..sysobjects where id=object_id('tempdb..#temp'))
drop table #temp
http://all.cnblogs.com/archive/2005/11/15/ContactUs.aspx?page=2&paging=1
drop table #temp
本文介绍了一种在Sql Server中检查并删除指定临时表的方法。通过使用T-SQL语句,可以有效地判断临时表是否存在,并在存在的情况下将其删除。这对于清理不再使用的临时数据非常有用。
2067

被折叠的 条评论
为什么被折叠?