判断MS SQLSERVER临时表是否存在

if exists (select * from tempdb.dbo.sysobjects where id = object_id(N'tempdb..#tempcitys') and type='U') drop table #tempcitys
posted @ 2017-03-05 00:00  PhilXu  阅读(84)  评论(0编辑  收藏  举报