MSSQL删除表及快速创建表(临时表)

阅读更多
一、临时表
if object_id('tempdb.dbo.#otc_otherdeliverline') is not null drop table dbo.#otc_otherdeliverline
Select * into #otc_otherdeliverline from v_utis_CRMOtherDeliverLine


二、真实表
if object_id(N'#otc_otherdeliverline', N'u') is not null drop table #otc_otherdeliverline
Select * into #otc_otherdeliverline from v_utis_CRMOtherDeliverLine

你可能感兴趣的:(tempdb,drop,sql)