SQL点点滴滴_删除临时表

select into 创建的表属于临时表,判断是否存在的方法

 

select c_adno,c_con_no into #temp from tb_contract

IF OBJECT_ID( 'tempdb..#temp') IS NOT NULL
Begin
DROP TABLE #temp
end

posted @ 2014-03-13 15:19  墨染凡尘1987  阅读(236)  评论(0)    收藏  举报