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  卡卡不卡  阅读(229)  评论(0编辑  收藏  举报