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

IF OBJECT_ID( 'tempdb..##TEMP_COPTD') IS NOT NULL
Begin
DROP TABLE ##TEMP_COPTD
End

相关文章: