玄铁剑

成功的途径:抄,创造,研究,发明...
posts - 128, comments - 42, trackbacks - 0, articles - 174

连续查询时临时表使用释放问题

Posted on 2007-04-12 21:59 玄铁剑 阅读(323) 评论(0)  编辑 收藏 引用 所属分类: sqlserver

Select * from talbeName
Into #TestDemo
.......

If Exists (Select name From tempdb..sysobjects Where charindex('#TestDemo,name)>0  AND type = 'U') Drop Table #TestDemo

只有注册用户登录后才能发表评论。