您的位置:首页 > 数据库

SQL 判断 临时表是否存在

2011-08-19 17:14 489 查看
判断临时表是否存在

Create Table #tmpKeyWordLink

(

id int

)

if exists(select * from tempdb.dbo.sysobjects where id = object_id(N'tempdb..#tempKeyWordLink') and type='U')

drop table #tempKeyWordLink
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: